Looping Statements:
Overview :
for statement
The for statement is used for iterating over a set of statements multiple times using an expression. The expression is evaluated after each run of the iteration and stops when the expression evaluates to false.
Let us see an example:
Type this code using your favourite editor:
Compile and run the program:
While Statement
do staement
do while statement
No comments:
Post a Comment