Loops in c programming language


Loop:-

loops are three types .
1.while
2.do....while
3.for
loop variable initialization;
while (condition)
{
statement;
loop variable increment/decrement;
}
‪#‎do‬...while loop-
loop variable initialization;
do
{
statement;
loop variable increment/decrement;
}
while(condition);
for(loop variable initialization;condition;loop variable increment/decrement)
{
statement;
}

Post a Comment

0 Comments