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