Program to print first 9 natural numbers using For loop
0
March 26, 2020
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.
Tags
If you have any doubt, let me know...