A for statement evaluates a sequence of initialization expressions and then, while a condition is true, repeatedly executes a statement and evaluates a sequence of iteration expressions.
In the below example will show you how to print numbers from 1 to 5
Example:
class Program |
Output:
1
2
3
4
5
No comments:
Post a Comment