Do-Until Loop

  • Thread starter Thread starter Madhavi
  • Start date Start date
Hi Maadhavi,

There is no Do Until loop, but there is a Do While, which is basically the
same.

do
{
// stuff
}
while(condition is true);
 
No, There isn't any Do-until loop in C#.

C# provides only the following loop statements:

while
do-while
for
foreach
 
do
{
....
}
while (!condition)

is the eqivalent to Pascal(like pseudocode):

do
...
until condition
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top