8.3 — Common if statement problems
This lesson is a continuation of lesson . In this lesson, we’ll take a look at some common problems that occur when using if statements. It is possible to nest if statements within other if statements: #include <iostream> int main() { std::cout << “Enter a number: “; int x{}; std::cin …