1.For example if i want to print 1 to 10 , use while statement or for looping statement.
2.Until the condition satisfies while loop will execute, once it reaches the condition it will come out from the loop.
Example:
class Program int i = 0; |
Output:
1
2
3
4
5
No comments:
Post a Comment