answersLogoWhite

0

A do while loop is executed at least one time.

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering

What is another name for loop structure?

Another name for a loop structure is an iteration construct. It allows a set of instructions to be executed repeatedly based on a specified condition or a defined number of times. Common types of loop structures include "for" loops, "while" loops, and "do-while" loops.


Is do-while loop executed only if the condition is true?

First the body is executed, then the condition gets checked.


Why are the statements in the body of a loop called conditionally executed statements?

These statements are called conditionally executed statements because the may or may not be executed. They will be executed while the boolean (true/false) statement in the beginning of the loop is true, but will not be executed when statement is false.


When would you use a count controlled loop vs. a flag controlled loop?

Counter Loop:Counter loop is a loop which executes statement up to a fixed number of time.In GW FOR ... NEXT loop is used as counter loop.Controlled Loop:Controlled loop is used to extend the statements till a specific condition is satisfied. In GW WHILE ... WEND is used as controlled loop.


What is difference between for loop and do-while loop?

The do loop is similar to the forloop, except that the expression is not evaluated until after the do loop's code is executed. Therefore the code in a do loop is guaranteed to execute at least once. The following shows a do loop in action: do { System.out.println("Inside do while loop"); } while(false); The System.out.println() statement will print once, even though the expression evaluates to false. Remember, the do loop will always run the code in the loop body at least once. Be sure to note the use of the semicolon at the end of the while expression.

Related Questions

What is another name for loop structure?

Another name for a loop structure is an iteration construct. It allows a set of instructions to be executed repeatedly based on a specified condition or a defined number of times. Common types of loop structures include "for" loops, "while" loops, and "do-while" loops.


Name the minimum and maximum member to make up the gram panchayat?

The minimum number is 7 while the maximum is 20 that make up the gram panchayat.


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 the maximum and minimum signed number that can be stored in a memory location in the 8086 processor?

The 8086/8088 processor is a 16 bit processor. In a 16 bit two's complement notation, the maximum number is 0x7FFF, or 32767, while the minimum number is 0x8000, or -32768.


Difference between do while and for loop?

for loop it consists of 3 parts 1. initialization 2. condition 3. incrementation like for(i=1;i<=10;i++).This loop executes 10 times. While loop: This is an entry check loop. First it checks for the condition and if the condition is true then only loop will be executed and this continues till the condition becomes false. ex: i=0; while(i<10) {i++; } This loop executes 10 times. Do loop: This is an exit check loop. This executes the loop at least once even when the condition is false. ex: 1=0; do { i++; }while(i<10);


What did goering do before he was executed?

Goering was not executed. he commited suicide while in custody using a cyanide pill.


Is do-while loop executed only if the condition is true?

First the body is executed, then the condition gets checked.


Why are the statements in the body of a loop called conditionally executed statements?

These statements are called conditionally executed statements because the may or may not be executed. They will be executed while the boolean (true/false) statement in the beginning of the loop is true, but will not be executed when statement is false.


How many citizens served as senators in Rome?

There has never been a head count of the number of citizens that served as senators in ancient Rome over the years. The number fluctuated with the times and with the consuls or dictator who held office. There were, for a minimum, 300 men in the senate. Julius Caesar bloated the senate to 900 and there were at least 600 senators at the time of Actium, as 300 went over to Antony while 300 stayed with Octavian.There has never been a head count of the number of citizens that served as senators in ancient Rome over the years. The number fluctuated with the times and with the consuls or dictator who held office. There were, for a minimum, 300 men in the senate. Julius Caesar bloated the senate to 900 and there were at least 600 senators at the time of Actium, as 300 went over to Antony while 300 stayed with Octavian.There has never been a head count of the number of citizens that served as senators in ancient Rome over the years. The number fluctuated with the times and with the consuls or dictator who held office. There were, for a minimum, 300 men in the senate. Julius Caesar bloated the senate to 900 and there were at least 600 senators at the time of Actium, as 300 went over to Antony while 300 stayed with Octavian.There has never been a head count of the number of citizens that served as senators in ancient Rome over the years. The number fluctuated with the times and with the consuls or dictator who held office. There were, for a minimum, 300 men in the senate. Julius Caesar bloated the senate to 900 and there were at least 600 senators at the time of Actium, as 300 went over to Antony while 300 stayed with Octavian.There has never been a head count of the number of citizens that served as senators in ancient Rome over the years. The number fluctuated with the times and with the consuls or dictator who held office. There were, for a minimum, 300 men in the senate. Julius Caesar bloated the senate to 900 and there were at least 600 senators at the time of Actium, as 300 went over to Antony while 300 stayed with Octavian.There has never been a head count of the number of citizens that served as senators in ancient Rome over the years. The number fluctuated with the times and with the consuls or dictator who held office. There were, for a minimum, 300 men in the senate. Julius Caesar bloated the senate to 900 and there were at least 600 senators at the time of Actium, as 300 went over to Antony while 300 stayed with Octavian.There has never been a head count of the number of citizens that served as senators in ancient Rome over the years. The number fluctuated with the times and with the consuls or dictator who held office. There were, for a minimum, 300 men in the senate. Julius Caesar bloated the senate to 900 and there were at least 600 senators at the time of Actium, as 300 went over to Antony while 300 stayed with Octavian.There has never been a head count of the number of citizens that served as senators in ancient Rome over the years. The number fluctuated with the times and with the consuls or dictator who held office. There were, for a minimum, 300 men in the senate. Julius Caesar bloated the senate to 900 and there were at least 600 senators at the time of Actium, as 300 went over to Antony while 300 stayed with Octavian.There has never been a head count of the number of citizens that served as senators in ancient Rome over the years. The number fluctuated with the times and with the consuls or dictator who held office. There were, for a minimum, 300 men in the senate. Julius Caesar bloated the senate to 900 and there were at least 600 senators at the time of Actium, as 300 went over to Antony while 300 stayed with Octavian.


What is the max number of ports on a switch?

The minimum number of ports on most brands of switches is four. While there is no industry rule that limits the number of ports on a single switch, practical application has shown that a minimum of four ports is about right.


What are the difference bitween while and do-while statement in c language?

While loop will be executed only the specified conditions atisfies. Do-While loop executes atleast once before checking for condition. So even a condition fails, the loop will be executed once.


What are the steps in solving problems using two variables?

four times a number is 6 more than three times a second number while 8 times the first number is 22 less than 7 times the second number. find the 2 numbers

Trending Questions
Why is it important to properly structure an HTML document when HTML is a free from language? Which valve is use in steam line? What can you do with crude oil? When does a capacitor becomes saturated? What is base and peak load of power station? How do you tell how you have a dual voltage motor? What are three main types of industries? When you first create an MS Word table is it left aligned and flush with the left margin? What is the sum of 2466? In home construction what is the definition of a half-story and can the half-story be at ground level The answer will determine if a house under construction violates restrictive covenants or not.? Changed pads rotors calipers brake hoses bled lines am getting fluid to the brakes there are no leaks brake pedal is stiff when engine is off but it loosens when engine starts no brakes why is this? Why must builders understand the properties of deformation and flexibility in a material? What type of motor oil is used for a Suzuki 2004 LC 1500 Intruder? Do you can use two small size power cable together instaed of large size cables? How did they make important improvements? How much oil comes from off shore oil platforms? With cloud computing virtualization, is the original data altered? Determine the secondary and primary current for a transformer which has primary voltage 1440V and secondary 240V and turns ratio of 6 if the secondary is loaded with a resistive load of 60 ohms? Schematic diagram of xor gate? What are the dimensions of one sheet of drywall?