show the difference between while and do,while with an example
Answers
Answered by
5
Explanation:
While loop is executed only when given condition is true. Whereas, do-while loop is executed for first time irrespective of the condition. After executing while loop for first time, then condition is checked.
Answered by
4
Explanation:
While loop is executed only when given condition is true. Whereas, do-while loop is executed for first time irrespective of the condition. After executing while loop for first time, then condition is checked.
Similar questions
English,
1 month ago
Social Sciences,
1 month ago
Math,
1 month ago
Math,
2 months ago
Math,
8 months ago