answersLogoWhite

0

If a loop begins with "while" then the test is made at the top of the loop, and the block is executed only when the expression (in parentheses) evaluates to true; if the loop begins with "do" then the block is executed at least once, and the "while" test is made at the bottom of the loop, to determine whether it is executed again.

In C/C++ the test at the end is a "while" keyword. However, in some other languages, the test at the end may use an "until" keyword, so that the block is repeated only when the condition is false and the loop exits when it is true.

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

Do while repeat and do commands identify a Repetition structure?

Yes, they are all loop mechanics so they represent repetition structures.


Why c is call structured programming?

Because you can use programming structures, namely: sequence, selection (if, switch) and repetition (while, for, do-while)


What is the difference between and ostinato and repetition?

An ostinato is a repeated melody, while repetition involves forming a melodic ostinato.


What is repetition control structure?

Repetitive control structures are loops like the do while loop and the for loops. They repeat and execute the same set of instruction until the condition stated in the while or for loop ceases to be true. After which it will exit the loop and continue down the program.


What is the difference between a skill and attribute?

Skill is something you attain through training and repetition, while attribute is a character trait.


What is the difference between repetition and replication of an investigation?

Repetition is copying an investigation, while replication of an investigation is the results of an investigation, which is not likely to be accepted unless the investigation is repeated multiple times and the same result is obtained.


Are repetition and alliteration the same?

No, repetition is the act of repeating words or phrases, while alliteration is the repetition of initial consonant sounds in neighboring words.


What is the same between repetition and replication?

Both repetition and replication involve the act of duplicating or reproducing something. Repetition typically refers to the repeating of a task or action, while replication usually refers to the copying of data or information.


What is the difference between equivalent and nonequivalent resonance structures?

Equivalent resonance structures have the same arrangement of atoms and electrons, while nonequivalent resonance structures have different arrangements of atoms and electrons.


What are the key differences between anyerior and posterior structures in the human body?

Anterior structures in the human body are located towards the front, while posterior structures are towards the back. Anterior structures are often involved in functions like breathing and digestion, while posterior structures are more related to support and protection of organs.


What are the key differences between anterior and posterior structures in the human body?

Anterior structures in the human body are located towards the front, while posterior structures are towards the back. Anterior structures are often involved in functions like breathing and digestion, while posterior structures are more related to support and protection, such as the spine and pelvis.


What are the key differences between ventral and dorsal body structures?

Ventral body structures are located on the front side of the body, while dorsal body structures are located on the back side. Ventral structures are typically involved in functions like digestion and respiration, while dorsal structures are more related to protection and support, such as the spinal cord.