JAVA PROGRAMME TO PRINT FIRST N NATURAL NO. IN REVERSE ORDER
import java.util.Scanner ;
public class Nilesh_Deore {
public static void main(String[] args) {
Scanner sc=new Scanner (System.in);
System.out.println("Enter the even number you want to print ");
int i,j;
i =sc.nextInt();
for (i=i; i>=0; i--){
System.out.println(2*i);}
}
}
Comments
Post a Comment