By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,656 Members | 800 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,656 IT Pros & Developers. It's quick & easy.

Do-Until Loop

P: n/a
Hi

Is there any Do Until Loop in C#

Maadhavi

Sep 15 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.