Home »
Chapter3 C program
» Program to print 'n' numbers using for loop
Program to print 'n' numbers using for loop
Explanation
Here, in the program, two variables are used n and i. n stores number inputted by user and "i" is used as loop. As the loop increment it will print the value of i until it becomes greater than number stored in n.
Output
Exercise
Make a program that will print "*" for n times using for loop.
No comments:
Post a Comment
If you have any doubt, let me know...