Output numbers using for loop
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 } }