Natural Number Print
This commit is contained in:
12
IndustrialTrainingProjects/NaturalNoPrint.java
Normal file
12
IndustrialTrainingProjects/NaturalNoPrint.java
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
// Program to print Natural numbers from 1 to 10.
|
||||||
|
|
||||||
|
package IndustrialTrainingProjects;
|
||||||
|
|
||||||
|
public class NaturalNoPrint {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
for(int i = 1; i <= 10; i++)
|
||||||
|
{
|
||||||
|
System.out.println(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -24,3 +24,4 @@ if the problem still persist then create a issue or use Google/Stack Overlflow f
|
|||||||
|1 | [PrivateConBasic.java](https://github.com/psavarmattas/Java-Projects/blob/master/IndustrialTrainingProjects/PrivateConBasic.java) | Program to implement private constructor using the basic method. |
|
|1 | [PrivateConBasic.java](https://github.com/psavarmattas/Java-Projects/blob/master/IndustrialTrainingProjects/PrivateConBasic.java) | Program to implement private constructor using the basic method. |
|
||||||
|2 | [PrivateConSingleton.java](https://github.com/psavarmattas/Java-Projects/blob/master/IndustrialTrainingProjects/PrivateConSingleton.java) | Program to implement private constructor using the Singleton method. |
|
|2 | [PrivateConSingleton.java](https://github.com/psavarmattas/Java-Projects/blob/master/IndustrialTrainingProjects/PrivateConSingleton.java) | Program to implement private constructor using the Singleton method. |
|
||||||
|3 | [EmployeeModelClass.java](https://github.com/psavarmattas/Java-Projects/blob/master/IndustrialTrainingProjects/EmployeeModelClass.java) | Program to create Model Class, Getters, Setters and display the data. |
|
|3 | [EmployeeModelClass.java](https://github.com/psavarmattas/Java-Projects/blob/master/IndustrialTrainingProjects/EmployeeModelClass.java) | Program to create Model Class, Getters, Setters and display the data. |
|
||||||
|
|4 | [NaturalNoPrint.java](https://github.com/psavarmattas/Java-Projects/blob/master/IndustrialTrainingProjects/NaturalNoPrint.java) | // Program to print Natural numbers from 1 to 10. |
|
||||||
Reference in New Issue
Block a user