fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. #define MAXARY 1000
  5.  
  6. int main(void)
  7. {
  8. char s[MAXARY];
  9. char c;
  10. int i;
  11.  
  12. while (scanf("%s%c", s, &c) == 2) {
  13. for (i = strlen(s) - 1; i > -1; i--)
  14. printf("%c", s[i]);
  15. putchar(c);
  16. }
  17. return 0;
  18. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty