16 lines
332 B
Java
16 lines
332 B
Java
/*
|
|
* This class will display all numbers from 1000 to 5 inclusive displays in
|
|
* decreasing order
|
|
*/
|
|
|
|
class ThousandToFive{
|
|
|
|
/*
|
|
* Main method. everything starts here
|
|
*/
|
|
public static void main(String[] args){
|
|
for (int i = 1000; i > 4; i--){
|
|
System.out.println(i);
|
|
} //end for loop
|
|
} //end main method
|
|
} //end class |