+ 3

Loops

How does a while loop correspond with an If statement

14th Apr 2018, 8:49 AM
Dom Harris
Dom Harris - avatar
3 ответов
0
they will be evaluated separately but your question in vague, provide sample code
14th Apr 2018, 8:59 AM
Mohammad Karimi
Mohammad Karimi - avatar
+ 1
correspond? both include a condition. The if statement selects an outcome depending on the condition being true or false. The while loop includes code that will be executed until the condition is no longer true.
14th Apr 2018, 10:37 PM
Greg Hurlock
Greg Hurlock - avatar
- 2
Need a help with c++
15th Jan 2021, 5:55 PM
Thanduxolo
Thanduxolo - avatar