231k views
5 votes
Which type of loop only runs while a condition is true?

2 Answers

2 votes

Answer:

a wile loop

Step-by-step explanation:

User Spagi
by
3.8k points
2 votes

Here is some ranting.

You haven't specified programming language. And every type of loop runs only when a condition is true (that is the definition of a loop).

And here is the answer.

Well, there is [code]for[/code], [code]while[/code] and in some languages even [code]do while[/code].

Hope this helps.

User Sergey Dryganets
by
3.1k points