About Lesson
For Loop:
-
This is an entry controlled looping
-
In this loop structure, more than one variable can be initialized.
-
One of the most important features of this loop is that the three actions can be taken at a time like variable initialization, condition checking and increment/decrement.
-
The for loop can be more concise and flexible than that of while and do-while loops.
Syntax :
for(initialization; condition; increment/decrement)
{
Statements;
}
1. Program to print first 10 natural numbers
Practical Exercise:- Click Here