No products in the cart.

Difference between "do while "and "while"operator

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Difference between "do while "and "while"operator
  • 1 answers

Sia ? 2 years, 10 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

Case study based question
  • 0 answers
What is the machine leaning
  • 1 answers
what is palindrone
  • 1 answers
Define pretty printing.
  • 2 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