search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

1 vote
3.9k views
asked ranj

1 Answer

0 votes
The While and do While is having only one difference that is in While first we write condition and then enter into the loop

where as do While first it will enter into the loop and then check the condition..

eg:

while(condition)

{

//piece of code

}

do

{

//piece of code

}while(condition)
answered Expert 11.4k points 14 22 28

Related questions

0 votes
1 answer 128 views
0 votes
1 answer 429 views
429 views
which loop is better in C and C++, for loop or while loop or do while?
asked anonymous
0 votes
1 answer 45 views
45 views
asked rajesh Guru 39.1k points 10 21 33
0 votes
1 answer 215 views
0 votes
1 answer 68 views
68 views
asked john Guru 27.1k points 31 50 97
...