Program to print 'n' numbers using for loop
0
April 02, 2020
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.
Tags
If you have any doubt, let me know...