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