Java program to, Print numbers from n to 1 (in reverse order). Class 9
Answers
Answered by
1
Explanation:
import java.util.Scanner;
public class reverse
{
public static void main ()
{
Scanner in = new Scanner( System.in);
System. out. println(" enter the limit in variable n");
int n = in. nextInt();
for( int i = n; i>=0 ; i--)
{
System. out. println(i);
}
}
}
Similar questions
English,
1 month ago
Political Science,
1 month ago
Math,
3 months ago
Math,
10 months ago
English,
10 months ago