fork download
  1. #include <stdio.h>
  2. int main() {
  3. int day =1;
  4.  
  5. switch (day) {
  6. case 1:
  7. printf("Monday\n");
  8.  
  9. case 2:
  10. printf("Tuesday\n");
  11. break;
  12. case 3:
  13. printf("Wednesday\n");
  14. break;
  15. default:
  16. printf("Invalid day\n");
  17. }
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
Monday
Tuesday