Nested statements | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Nested statements

Is it possible to nest if statements and switch statements in C or C++ if yes how do you go about it?

3rd Sep 2020, 11:50 PM
Amanor Daniel
Amanor Daniel - avatar
1 Answer
+ 5
They both do the same job, so you only have to choose one. The best thing to do is to first translate what you are thinking into some form of short pseudo code and attach that to your question to clarify it well.
3rd Sep 2020, 11:55 PM
code0rdie
code0rdie - avatar