2. Syntax and usage of these statements.
3. Usage of each loop structure
while statement
while (condition){
statement 1;
statement 2;
.
.
do-while statement
do
{
statement 1;
statement 2;
.
.
for statement
for(expr1; expr2; expr3)
{
statement 1
.
.
}
expr1 = initialization
expression
expr2 = loop condition
expr3 = alteration
expression which alters
the loop variable
{
statement 1;
statement 2;
.
.
} while (condition);
for statement
for(expr1; expr2; expr3)
{
statement 1
.
.
}
expr1 = initialization
expression
expr2 = loop condition
expr3 = alteration
expression which alters
the loop variable
0 comments:
Post a Comment