for loop or for statement
The syntax of this statement as follows :-
for(exp1; exp2; exp3)
{
statements;
}
Explaination :-
In the for statement, there are 3 expression,
exp1 is used to initialize or to start the index parameter.
exp2 represents a condition to be satisfy for the execution of the loop.
exp3 is used to change the value of index parameter.
for(exp1; exp2; exp3)
{
statements;
}
Explaination :-
In the for statement, there are 3 expression,
exp1 is used to initialize or to start the index parameter.
exp2 represents a condition to be satisfy for the execution of the loop.
exp3 is used to change the value of index parameter.
0 comments:
Post a Comment