fork download
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <stdio.h>
  3.  
  4. int main(void)
  5. {
  6. char arr[255];
  7. int i = 0;
  8. while (scanf("%c", &arr[i]) != EOF)
  9. {
  10. i++;
  11. }
  12. for (i = i; i >= 0; i--)
  13. {
  14. printf("%c", arr[i]);
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 5284KB
stdin
Jiangnan University?
stdout
?ytisrevinU nangnaiJ