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.

Post a Comment

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