Skip to main content

Question 2.

Question 2.

by AISYAH SUHAILLA BINTI JILI -
Number of replies: 21

List the differences between while loop and do..while loop.

In reply to AISYAH SUHAILLA BINTI JILI

Re: Question 2.

by MOHAMMAD -
do while loop will loop at least once

while loop will loop until the condition/evaluation is return to false
In reply to AISYAH SUHAILLA BINTI JILI

Re: Question 2.

by Charles -
do while loop will loop at least once

while loop will loop until the condition/evaluation is return to false
In reply to AISYAH SUHAILLA BINTI JILI

Re: Question 2.

by JHEANTAYU ANAK TAGIE -
do while loop need looping at least once

while loop will loop until the condition/evaluation is return to false
In reply to AISYAH SUHAILLA BINTI JILI

Re: Question 2.

by SURA ANAK DANA -
do while loop will loop at least once

while loop will loop until the condition/evaluation is return to false
In reply to AISYAH SUHAILLA BINTI JILI

Re: Question 2.

by MAXIE QUING AJONG -
do while loop will loop at least once

while loop will loop until the condition/evaluation is return to false
In reply to AISYAH SUHAILLA BINTI JILI

Re: Question 2.

by GEVENISSA YONG -
Differences between While Loop and Do While Loop Is While loop been using before execute the loop body make sure the condition already checked.
Do while loop have more than 1 condition but must have one condition checked before execute
In reply to AISYAH SUHAILLA BINTI JILI

Re: Question 2.

by TIMOTHY BANG SUAI -
do while loop will loop at least once
while loop will loop until the condition/evaluation is return to false
In reply to AISYAH SUHAILLA BINTI JILI

Re: Question 2.

by BARRY MOSES ANAK JACK BALA -
A while loop checks the condition first and might not run at all, while a do..while loop always runs at least once before checking the condition
In reply to AISYAH SUHAILLA BINTI JILI

Re: Question 2.

by HERDAWATI BT AHMAD -
do while loop need looping at least once

while loop will loop until the condition/evaluation is return to false