Initial Commit
This commit is contained in:
16
Java/ThousandTofive/src/ThousandToFive.java
Normal file
16
Java/ThousandTofive/src/ThousandToFive.java
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* 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
|
||||
Reference in New Issue
Block a user