Answer :
Answer:
Explanation:
The following code is written in Java. It asks the user to enter the first number. Then it saves that number in a variable called firstNumber. It then uses that number to loop backwards from that number to 1 and goes printing out the countdown text. A test case has been created and the output can be seen in the attached image below.
import java.util.Scanner;
class Brainly {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.print("Enter First Number: ");
int firstNumber = in.nextInt();
System.out.println("Ready!");
for (int i=firstNumber; i>0; i--) {
System.out.println(i);
}
System.out.println("Run!");
}
}
