answersLogoWhite

0

probably a for loop

The for loop just runs through for a specified number of times, whereas the while loop has to check the conditions for each run, until a certain condition is satisfied (or not satisfied) when it then stops

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

Is a while loop or a for loop faster?

No difference.


Is for loop is faster than while loop in turbo c plus plus compiler?

No, why did you think so?


What is the minimum number of times a do- while loop is executed?

A do while loop is executed at least one time.


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.


Why you need a for loop when you have already while loop or do while loop?

We need a for loop because the while and do-while loops do not make use of a control variable. Although you can implement a counter inside a while or do-while loop, the use of a control variable is not as self-evident as it is in a for loop. Aside from the use of a control variable, a for loop is largely the same as a while loop. However, it is quite different to a do-while loop, which always executes at least one iteration of the loop before evaluating the conditional expression. In a for and while loop, the conditional expression is always evaluated before entering the loop, which may result in the loop not executing at all.


How many times is ado while loop guaranteed for a loop?

one or more


What is a nested loop in java?

A nested loop is a (inner) loop that appears in the loop body of another (outer) loop. The inner or outer loop can be any type: while, do while, or for. For example, the inner loop can be a while loop while an outer loop can be a for loop.


What type of loop uses a boolean expression?

A "while" loop is appropriate in this case - one in which the condition is evaluated at the beginning of the loop.


What are the similarities of while loop and a do while loop?

They both loop


What is main different between do while and while?

If you want to execute a statement which is in while loop at least one time you can use do- while loop. this is why because initially first statements will be executed then condition will be checked. but in case of while first condition will be check then statements will be executed


What are while loop in vb.net?

The while loop in vb.net uses the syntax form which provides a way to continue iterating while one or more conditions are true.


Compare Do-While with While Statements?

A Do-While loop looks like this: do { loop body } while (condition); and a While loop looks like this: while (condition) { loop body } The main difference is that the loop body is always run once in the Do-While loop, then the condition is checked to see if the loop should keep running. In a While loop, the condition is checked first, and it will not run the loop body at all if the condition is false.

Trending Questions
Can you buy a Sidekick LX in Australia. If so where from? The accounting offices of Anna and Elsa Ice are linked in a network that allows employees to choose who they will send information to within the network without sending it to everyone on the network.? What is better a plugin charger with an input of 100-240vac 50-60hz 0.15a output 5.0v0.7a or a phone charger with an input of 100v-240v 0.2a 50hz-60hz an output of 5.0v800ma? What topics are reviewed by Computer Arts magazine? How LED connected in seven segment display? Are all finite languages regular, according to the theory of formal languages? Can you see a picture of the salt fish head on your computer please? why. arrange these events of cartography in the order in which they occurred; ibn Idrisi's world map, piri reis' map, dynamic internet maps, ptomy's world map? Modern networks primarily uses three types of media to interconnect devices? Will the internet ever fill up and how do you know? Why is a computer called versatile machine? Does the boot sector give initial instructions when the computer is booted? When was North Star Computers created? How can you best identify quackery in a health service provider? What is the ratio of the output signal to the input signal of an amplifier that is usually measured in decibels? Can kids actually forget the stuff they learned at school over the summer? What are two examples of hardware information? Does the address bar store websites that you linked to from another site or just the addresses you type in like www.? What is the difference between the image size and view zoom? Is twisted-pair cable is made up of plastic or glass fibers that transmit data at extremely fast speeds?