Friday, 15 December 2017

Write a program for reverse number using for loop in Java program

Write a program for reverse number using for loop in Java program.

class Forloop {
    public static void main(String args[]){
         for(int i=10; i>1; i--){
              System.out.println("The value of i is: "+i);
         }
    }
}

No comments:

Post a Comment