fork download
#include <stdio.h>
#include <iostream>
using namespace std;


int main(void) {
int x = 5; 
int y = 2; 
char op = '*';
switch (op) {
    default : x += 1;
    case '+' : x += y;
    case '-' : x -= y;
    
}
cout <<x;
return 0;
}
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
6