Program to print first 9 natural numbers using For loop


Here, I have used Dev C++ platform, it is easy to download. In this program, integer "i" is declared. For Loop has been used initiating i from 1 and print the value of i in each loop increasing value of i by 1 until given condition becomes false ie, i<10.

Output


Exercise
Print natural numbers from 10 to 30 using For Loop.

Give your answer in comment section.

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.