sarabjit singh


{ City }
< Country > india
* Profession *
User No # 105908
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 0
Users Marked my Answers as Wrong # 2
Questions / { sarabjit singh }
Questions Answers Category Views Company eMail




Answers / { sarabjit singh }

Question { HCL, 6816 }

difference between do while and do until ?


Answer

In do until , the code is run atleast once
eg: do
{
/// statement
} until i=0

whereas in while it checks whether condition is false/true , and then it executes the statement
while i=0 ******if i=0 is true*****
{
execute the statement
}

Is This Answer Correct ?    0 Yes 2 No