fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3. int main()
  4. {
  5. char buf[100];
  6. fgets(buf, 100, stdin);
  7. if (strcmp(buf, "character string\n") == 0)
  8. printf("A\n");
  9. else
  10. printf("B\n");
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 2296KB
stdin
c
characterstring
character string
stdout
B