Computer Science, asked by Parthan2006, 2 months ago

Java program to, Print numbers from n to 1 (in reverse order). Class 9

Answers

Answered by DeblinaDutta
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