fork download
  1. #include <stdio.h>
  2. #include <ctype.h>
  3.  
  4. int main(void) {
  5. char c;
  6. while (1) {
  7. printf("> ");
  8. scanf("%c%*c", &c);
  9. if (c == '0') {
  10. break;
  11. } else {
  12. printf("%c\n", toupper(c));
  13. }
  14. }
  15. return 0;
  16. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty