+ 2

How to make chains of requirements in c++

I tried to make a chain of conditions by putting an if else inside of the else of another if else and it did an error. Is there another way to do this?

10th Dec 2019, 5:49 PM
Christian0972
7 Respostas
+ 2
It is possible to use an if else statement inside another if or else statement. Please share your code so we can try to find the problem.
10th Dec 2019, 5:59 PM
Deroman
Deroman - avatar
+ 2
Deroman It worked this time I must have just forgot the semicolons at the end. Thanks for confirming it should work
10th Dec 2019, 8:27 PM
Christian0972
+ 1
Deroman I realized that after realizing it didn’t work, i changed it a lot so im redoing it and ill say if it works or not
10th Dec 2019, 8:05 PM
Christian0972
+ 1
Good luck buddy
10th Dec 2019, 8:12 PM
Deroman
Deroman - avatar
+ 1
Have a look at logical AND (&&) and logical OR (||)...... It entirely depends on what you're trying to do.
10th Dec 2019, 8:14 PM
rodwynnejones
rodwynnejones - avatar
+ 1
That's great, I'm glad I could help a little at least
10th Dec 2019, 10:20 PM
Deroman
Deroman - avatar
- 1
I😇🤢
12th Dec 2019, 2:43 AM
Farid Ahmed Sobuj
Farid Ahmed Sobuj - avatar