Java - Output numbers using for loop

Description

Output numbers using for loop

Demo

import java.util.Scanner;

public class AllNumFor {

     public static void main(String[] args) {
          Scanner input = new Scanner(System.in);

          for (int i = 10; i > 0; i--) {
               System.out.println("Number " + i);
          }//www  .  j a v a 2  s . c om
     }
}

Related Topic