- 2

diffrence between while and do while

What is the basic diffrence between while and do while? Where to use both?

1st Dec 2020, 6:40 AM
Sanskruti Thorat
1 Resposta
+ 4
The most basic difference is that while loop first check condition and then runs block of code But do while loop first runs block of code and then checks the condition
1st Dec 2020, 7:11 AM
Piyush
Piyush - avatar