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.

Comments

Popular posts from this blog

State whether the following statements are true or false:

C program to display prime numbers between 1 to 100.