if (b>a) { } else { } if ( a == 10 ) { } else if ( a == 20 ) { } else if ( a == 30 ) { } else { } int x = 3; int y = 2; char operato = '+'; switch (operato) { case '+': x += y; cout << x << endl; case '-': x -= y; cout << x << endl; case '*': x *= y; cout << x << endl; case '/': x /= y; cout << x << endl; default: cout << "def" << endl; break; }
4
2
4
2
def
2
4
2
def