How to make chains of requirements in c++ | Sololearn: Learn to code for FREE!

+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?

12/10/2019 5:49:27 PM

Christian0972

7 Answers

New Answer

+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.

+2

Deroman It worked this time I must have just forgot the semicolons at the end. Thanks for confirming it should work

+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

+1

Good luck buddy

+1

Have a look at logical AND (&&) and logical OR (||)...... It entirely depends on what you're trying to do.

+1

That's great, I'm glad I could help a little at least

-1