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

โˆ™ 12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

โˆ™ 12y 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

โˆ™ 11y 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


How do you tell the difference between lustrium and silver?

Wait a while until the lustrium rusts or reshapes.


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 oscillation and periodic motion?

Oscillatory motion is also called vibratory motion while periodic motion is a motion which is repeat itself after a specific interval. Periodic motion may be rotatory or vibratory.


What is the different between difference and different?

Different is an adjective while difference is a noun


What is different between different and difference?

Different is an adjective while difference is a noun