answersLogoWhite

0


Best Answer

Repeat until loops run until a condition is true. They repeat at the end of the loop and they will always run at least once.

While do loops will only run while a condition is true. They may not run at all.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

There is no "until" loop in C, C++, or Java. Are you thinking do {} while ()?

If so, the while loop tests the condition at the top...

while (condition) statement;

... while the do while loop tests the condition at the bottom ...

do statement; while (condition);

... In the first example, if the condition if false to start with, the loop will never execute, but in the second example, the loop will always execute at least once.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

for while

  1. the while condition is checked
  2. if true, execute the while block
  3. if false, exit the while loop
  4. go back to 1

for until

  1. execute the until block of code
  2. check the until condition
  3. if true, end
  4. else go back to 1

The biggest difference is that while checks the condition and if it's initially false never executes the block of code, while an until loop always executes it's block of code at least once.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between a repeat until and a while do loop?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between while and repeat?

while means when it is happening. repeat means to do again


What is the difference between a circle and a cycle?

A circle is a shape that is round and continuous, while a cycle refers to a series of events that repeat in a particular order. Circles are geometric figures, while cycles are patterns of events or behaviors.


What do a vacuum cleaner and a tea strainer have in common?

They are both a filter like the vaccum cleaner it filters all the dust and dirt while the tea strainer filters the tea bag or the tea leaves. :) So I repeat they are both a type of filter :)


What is one difference between a paraphrase and quotation?

A paraphrase is when you reword someone else's ideas in your own words, while a quotation is when you repeat someone else's exact words.


What is the difference between grades and years at school?

Grades are levels, and years are time. Some students skip grades based on their results, while others are held back to repeat grades.


What is the difference between Do While statements and Do For statements?

A "do while....." statement is a looping instruction to a program to repeat a stage in the program while some condition is true - e.g while a variable is negative, or, while one variable is less than another. A "do for ....." statement is a looping instruction to a program to repeat a stage in the program a set number of times - e.g for steps = 1 to 10, or, for steps = 1 to (some variable).


What is the difference between conditional statements and looping statements?

The main difference is how often they run. A conditional statement - often an IF - may or may not run. If it does (depending on whether a condition is fulfilled), it runs only once. A looping statement - often a WHILE or FOR - is designed to repeat, while a certain condition is true.


What is the difference between the decimal expansion in irrational and rational numbers?

Decimals that terminate or repeat in some fashion are rational, while decimals that expand forever are irrational.


What is the difference between it's and it?

the difference between it's and it..is that it's means it is, while "it" is direct to the object .


What is the difference between do while and do until loop in vb programming?

Do while and Do until are interchangeable, and they take the opposite condition. Do While executed the body of the loop while (condition=true), and Do until executes body of loop until (condition=true). For example, if I was doing a Loop to say, while the check box is checked, display a message box (Never do this btw, it's just an example) I could either say Do While (MyCheckBox.Checked = True) Loop or Do Until (MyCheckBox.Checked <> True) Loop


How do you set the time and date on Conairphone Call Keeper TAD1210?

How to set the time and date on the CONAIRPHONE TAD1210D tapeless answering machine 1. Push and hold the Time Set/Repeat Button 2. While holding the Time Set/Repeat Button push and release the On/Off button until correct day is reached 3. Release the Time Set/Repeat Button 4. Push and hold the Time Set/Repeat Button while pushing and releasing the On/Off button until the correct hour is reached 5. Release the Time Set/Repeat Button 6. Push and hold the Time Set/Repeat Button while pushing and releasing the On/Off button until the correct minute is reached 7. Release the Time Set/Repeat Button 8. Push and hold the Time Set/Repeat Button while pushing and releasing the On/Off button until A.M. or P.M. reached 9. Release the Time Set/Repeat Button 10 Push and release the Time Set/Repeat button to hear the correct Time and date


What is different between different and difference?

Different is an adjective while difference is a noun