Files
examples/Java/ThousandTofive/src/ThousandToFive.java
2012-01-22 16:14:32 -05:00

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