- 1

What is difference between while and do-while loop?

21st Feb 2017, 8:31 AM
Md. Shifullah
Md. Shifullah - avatar
2 Respostas
+ 1
(my statement) do-while loop must execute for 1 time but while is not. because do-while loop execute code then check conditions but while loop check condition first then execute code.
21st Feb 2017, 9:47 AM
Md. Shifullah
Md. Shifullah - avatar