'for' loop:-
for loop executed one or more statements for a specified number of times.This loop is also called Counter controlled loop. it is the most flexible loop.That is why ,it is the most frequently-used loop by the programmers.
Syntax:-
The syntax of while loop is as follows:
for(initialization;condition;increment/decrements)
{
Statement 1;
Statement 2;
:
:
Statement N;
}
Post a Comment