0

C++

How to use if/else in while loop? Can we usr if/else before while statement?

19th Nov 2019, 4:30 PM
Zainab Fatima
Zainab Fatima - avatar
3 Answers
+ 2
By just using it like you normally use it, there's nothing specifically different. You have only started with the tutorial. Just read on and practice everything - you'll encounter everything!
19th Nov 2019, 4:33 PM
HonFu
HonFu - avatar
+ 2
Yes, it's totally independent. So you can use while or if/else on their own. Or you can use while within if/else. Or you can use if/else while.
19th Nov 2019, 4:40 PM
HonFu
HonFu - avatar
+ 1
Ok
19th Nov 2019, 4:41 PM
Zainab Fatima
Zainab Fatima - avatar