The difference between pre-test and post test loops

Computer Science
Tutor: None Selected Time limit: 1 Day

in c++

Nov 19th, 2014

hello.............rate my answers then will answer rest of your questions.................hello u there?


PreTest Do/Loop

PostTest Do/Loop

1. Do-while tests the loop condition each time through the loop & it keeps executing while the test expression is a true value.

Loop while we check the condition at the bottom.

2.When the conditional expression is false then

When the loop while is used ,the body of loop

the statements in Do/Loop are skipped.

is executed at least once, since the condition is at the bottom of the loop.

3. General Syntax is :

Do while <condition>

<statements>

Loop General Syntax is

General Syntax is :

Do

<statements>

Loop while<condition>

4. Ex.

Do While intNumber < 100

lblNumber.Caption=intNumber

intNumber = intNumber + 1

Loop

Ex. Dim intNum as integer

Do

Form1.print intNum

intNum = intNum +1

Loop while(intnum <= 10)


Nov 19th, 2014

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Nov 19th, 2014
...
Nov 19th, 2014
Dec 6th, 2016
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer