No products in the cart.

Difference between while and do while

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Difference between while and do while
  • 1 answers

Sia ? 2 years, 9 months ago

BASIS FOR COMPARISON WHILE DO-WHILE
General Form while ( condition) {
statements; //body of loop
}
do{
.
statements; // body of loop.
.
} while( Condition );
Controlling Condition In 'while' loop the controlling condition appears at the start of the loop. In 'do-while' loop the controlling condition appears at the end of the loop.
Iterations The iterations do not occur if, the condition at the first iteration, appears false. The iteration occurs at least once even if the condition is false at the first iteration.
Alternate name Entry-controlled loop Exit-controlled loop
Semi-colon Not used Used at the end of the loop
http://mycbseguide.com/examin8/

Related Questions

What is python language
  • 1 answers
what is mutlimedia corse
  • 0 answers
Computer
  • 1 answers
Tell me i.t. syllabus
  • 1 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App