Give one point of similarity and one point of difference between while() and do-while() loop.
Answers
Answered by
1
Well, below are the differences between while and do while loop, ... Hence while loop executes the code block only if the condition is true. In do while loop, condition is tested at the end of the loop. So Do While executes the statements in the code block at least once even if the condition fails.
Similar questions
Social Sciences,
2 months ago
English,
2 months ago
History,
5 months ago
Science,
5 months ago
Computer Science,
10 months ago
Biology,
10 months ago