469,927 Members | 1,867 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

Do-Until Loop

Hi

Is there any Do Until Loop in C#

Maadhavi

Sep 15 '06 #1
4 137263
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);
On Fri, 15 Sep 2006 10:54:19 +0200, Madhavi <ma***********@gmail.com>
wrote:
Hi

Is there any Do Until Loop in C#

Maadhavi


--
Happy Coding!
Morten Wennevik [C# MVP]
Sep 15 '06 #2
No, There isn't any Do-until loop in C#.

C# provides only the following loop statements:

while
do-while
for
foreach
--
Nand Kishore Gupta
"Madhavi" wrote:
Hi

Is there any Do Until Loop in C#

Maadhavi

Sep 15 '06 #3
do
{
....
}
while (!condition)

is the eqivalent to Pascal(like pseudocode):

do
...
until condition

"Madhavi" <ma***********@gmail.comschrieb im Newsbeitrag
news:11**********************@i42g2000cwa.googlegr oups.com...
Hi

Is there any Do Until Loop in C#

Maadhavi

Sep 15 '06 #4
Thank you all

Maadhavi
Christof Nordiek wrote:
do
{
....
}
while (!condition)

is the eqivalent to Pascal(like pseudocode):

do
...
until condition

"Madhavi" <ma***********@gmail.comschrieb im Newsbeitrag
news:11**********************@i42g2000cwa.googlegr oups.com...
Hi

Is there any Do Until Loop in C#

Maadhavi
Sep 15 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Adams-Blake Co. | last post: by
86 posts views Thread by Michael Kalina | last post: by
7 posts views Thread by Mike | last post: by
19 posts views Thread by Alan Silver | last post: by
138 posts views Thread by Ian Boyd | last post: by
28 posts views Thread by H J van Rooyen | last post: by
9 posts views Thread by art | last post: by
19 posts views Thread by John Salerno | last post: by
33 posts views Thread by MC | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.