fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #define true 1
  4. #define false 0
  5.  
  6. int main(void) {
  7.  
  8. char input;
  9. char output;
  10. bool tf = true;
  11.  
  12. printf("Welcome to the Coder!\n");
  13.  
  14. while (tf) {
  15. printf("Choose Input (H,A,B,Q) : ");
  16. scanf(" %c\n", &input);
  17.  
  18. if (input == 'Q') {
  19. tf = false;
  20. }
  21. else {
  22. printf("Choose Output (H,A,B) : ");
  23. scanf(" %c\n", &output);
  24. }
  25. }
  26.  
  27. return 0;
  28. }
Success #stdin #stdout 0s 3144KB
stdin
Q
stdout
Welcome to the Coder!
Choose Input (H,A,B,Q) :