fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int x = 4;
  5. switch (x)
  6. {
  7. default: printf("Choice other than 1 and 2");
  8.  
  9. case 1: printf("Choice is 1");
  10.  
  11. case 2: printf("Choice is 2");
  12.  
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 4404KB
stdin
Standard input is empty
stdout
Choice other than 1 and 2Choice is 1Choice is 2