fork download
  1. #include <stdio.h>
  2.  
  3. main()
  4. {
  5. char input[] = "SSSWILTECH1\1\1";
  6. int i, c;
  7. for ( i=2; (c=input[i])!='\0'; i++) {
  8. switch(c) {
  9. case 'a': putchar ('i'); continue;
  10. case '1': break;
  11. case 1: while (( c = input[++i]) != '\1' && c!= '\0');
  12. case 'E': case 'L': continue;
  13. default: putchar(c);continue;
  14. }
  15. putchar(' ');
  16. }
  17. putchar('\n');
  18. }
Success #stdin #stdout 0.01s 5264KB
stdin
Standard input is empty
stdout
SWITCH