What is the difference between while …

CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
Posted by Neha Barnwal 8 years, 10 months ago
- 2 answers
Naveen Sharma 8 years, 10 months ago
Ans. The difference is in when the condition gets evaluated.
In a do-while loop, the condition is not evaluated until the end of each loop. That means that a do- while loop will always run at least once.
In a while loop, the condition is evaluated at the start. So while loop will run only when condition is true.
Related Questions
Posted by Jeevesh Jeevesh 1 year, 5 months ago
- 1 answers
Posted by M.Sameeha _ 1 year, 4 months ago
- 0 answers
Posted by Manasvi Bhutada 1 year, 5 months ago
- 1 answers
Posted by Payal Kumari 1 year, 9 months ago
- 0 answers
Posted by Vanshika Prajapati 1 year, 9 months ago
- 1 answers
Posted by Catherine Tympuiñ 1 year, 4 months ago
- 1 answers
Posted by Rupesh Rupesh 1 year, 9 months ago
- 2 answers
Posted by Catherine Tympuiñ 1 year, 4 months ago
- 0 answers

myCBSEguide
Trusted by 1 Crore+ Students

Test Generator
Create papers online. It's FREE.

CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
myCBSEguide
Shubham Pandey 8 years, 9 months ago
While loop is an entry control loop ..while ...do while is an exit control loop
0Thank You