Create a free account on Computer Sir Ki Class and unlock access to valuable learning resources.
Exam Paper Downloads: After registering and logging in, you can download exam question papers in PDF format to practice and prepare for your exams.
Student Support: Get assistance with your doubts, queries, and questions related to your studies. Our support is here to help you understand topics and resolve your learning difficulties.
Register today and make your exam preparation easier and more effective!
State the difference between while and do while loop.
Answer:
while loop
– while loop is an entry controlled loop (condition is tested at the beginning of the loop)
– while loop may not execute even once based on the condition.
do-while
– do-while is an exit controlled loop (condition is tested at the end of the loop)
– do-while loop will execute at least once.
–
C. Sir| Created: 24-Mar-2018 | Updated: 12-Apr-2019|ICSE2018