+ 1
In c programming while and do while loop syntax changes in while loop why ?
4 Respostas
+ 2
in while loop
while(condition)
{
statement(s);
}
or in do while ...
##############😎
do
{
statement(s);
}
while( condition );
you see in while loop or see do while loop.
+ 1
in while(condition)
in do while(condition);
in do while(condition);the semicolon used in but in while(condition) not used semicolon
0
"do while" is helpful when you don't want to check condition for the first time.
0
Int x=1;do{ system.out.println(x);
}while(x<=5); yields the same o/p as while(x<=5){ system.out.println(x)}