1.

State the difference between while and do while loop.

Answer»
whiledo-while
(i) The statements can be executed..(i) The loop executes the statement at least once.
(ii) The condition tested before execution.(ii) The condition is tested after execution.
(iii) The loop terminates if the condition becomes false.(iii) If the conditon is false, the computer keeps executing the loop.



Discussion

No Comment Found

Related InterviewSolutions