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
}