+ 1

In c programming while and do while loop syntax changes in while loop why ?

8th May 2017, 4:18 PM
Nikhil
Nikhil - avatar
4 odpowiedzi
+ 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.
8th May 2017, 4:25 PM
Nikhil
Nikhil - avatar
+ 1
in while(condition) in do while(condition); in do while(condition);the semicolon used in but in while(condition) not used semicolon
9th May 2017, 3:34 AM
Nikhil
Nikhil - avatar
0
"do while" is helpful when you don't want to check condition for the first time.
8th May 2017, 6:32 PM
Muhammad Nauman Bootter
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)}
24th May 2017, 11:17 AM
sai charan tej
sai charan tej - avatar