0
What is the function of 'do' in do while loop ?
https://code.sololearn.com/cwehQy7jgex3/?ref=app and https://code.sololearn.com/csIW9JaqZd4h/?ref=app ..... see my 2 codes and please explain me
1 Answer
+ 1
Do while loop always runs 1 time before checking condition. If i type int x = 1;
do{
// some code
} while(x > 5)
This loop wil run one time even when condition is false.