fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3. int main() {
  4. char str[100];
  5. fgets(str, 100, stdin);
  6. int len = strlen(str) - 1;
  7. for (int i = len; i >= 0; i--) {
  8. printf("%c", str[i]);
  9. }
  10. printf("\n");
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout