adplus-dvertising
frame-decoration

Question

Correct syntax for do while loop is :
a) 
do;
   {
    statement;
   }while (condition);

b) 
do(condition)
   {
     statement;
   }while;

c) 
do
   {
     statement;
   }while (condition)

d) 
do
   {
        statement;
   }while (condition);

a.

a

b.

b

c.

c

d.

d

Posted under C# programming

Answer: (d).d

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Correct syntax for do while loop is :