Computer Science, asked by navneetbeniwal4860, 1 year ago

Why in the do while loop equal and less equal behave same

Answers

Answered by Anonymous
0

When the condition is on the Loop line, the loop will always run at least once. So it will run one or more times. In the above example, both loops will behave the same. However, if we set sCommand to 'n' before the Do While loop starts, then the code will not enter the loop.

Similar questions