Fixed minor typo (#21805)

This commit is contained in:
chaudhary-anurag
2018-11-05 12:29:10 +05:30
committed by Manish Giri
parent 1fa6cee420
commit af3c7e8794

View File

@ -16,7 +16,7 @@ Note: Remember to use a semicolon ';' at the end of the condition.
## Details about do-while loop
The do-while loop is used whenever you are sure that a particular process(within the loop) has to be performed at least once. It has many advantages like not initialising the checking variable(eg- char addmore='Y') etc. The semicolon at the end of while is a must.
The do-while loop is used whenever you are sure that a particular process(within the loop) has to be performed at least once. It has many advantages like not initializing the checking variable(eg- char addmore='Y') etc. The semicolon at the end of while is a must.
Do something first and then test if we have to continue. The result is that the do block runs at least once. (Because the expression test comes afterward). Take a look at an example: