0

I don't understand about loop?

Reply fast

16th Oct 2019, 10:58 AM
Muhammad Junaid
Muhammad Junaid - avatar
3 Answers
+ 2
Loop in a nutshell is repeating a block of codes if the condition is true. While loop for example: int num = 1; while(num <= 5) { //This block of code will repeat if num <= 5 cout << num; num++; } //After loop end cout << " loop end."; //Output: 12345 loop end.
16th Oct 2019, 11:20 AM
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ - avatar
+ 2
Don't write 'Reply fast' or similar in your question, if someone knows the answer to your question, he probably would give it immediatly. Thanks for understanding!
16th Oct 2019, 12:07 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
Thanks
17th Oct 2019, 2:32 AM
Muhammad Junaid
Muhammad Junaid - avatar