answersLogoWhite

0

How do you make do-while structure?

User Avatar

Anonymous

15y ago
Updated: 8/18/2019

var bContinue = true

do while bContinue {

iterate over some type of set (or with a counter) in order to repetively do a bunch of stuff here.

set bContinue to false within this block when the desired condition has been met.

}

//the iteration will keep occurring until bContinue is set to false, after which time it will no longer iterate.

// Don't forget to set bContinue to false, or it will be an infinite loop.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the difference between while dowhile?

While: If we can use while statement it will check the condition then proceed further loop statement.DoWhile: If we use dowhile, first execute loop statement then check the condition.


Which is faster to find factorial whether recursive or dowhile?

recursion is always slower than iteration


Is a DOWHILE loop more flexible than a dountil loop?

No, they are equivalient. DO something WHILE condition; does the same thing as DO something UNTIL NOT condition;


List out the differences between while and dowhile statement?

The do ..while loop is executed at least once, whereas the while loop may not be executed even once.


What is a dowhile statement in C programming?

"do statement while (...);" is a loop which does at least one iteration even if the condition after while is false. When, for instance, "while(...) statement" does not iterate at all if the condition after while is false.


How do you make a sentence with the word structure?

You can say, "The structure of the building was stable."


What is difference between while and dowhile?

the test condition will be checked first after wards the body of the loop will be excuted in while statement and the the do while statement represented the body of the loop will be executed first and then the test condition will checked next


What is unique about a DOWHILE loop?

A DO-WHILE loop will always execute at least one iteration of the loop body. This is because the condition that controls the loop comes at the end of the loop, rather than at the beginning as per a WHILE or FOR loop.


How can soil be structure?

Soil is what you make it ;)


Structure of plasma?

Structure of plasma is to mix with the blood to make enough liquid in the body.


What contribution did Francis Crick make to the discover of the structure of DNA?

they described the structure of DNA


Structure in cells that make ribosomes?

Nucleolus