fork download
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. #define E '\n'
  4. void reverse(void);
  5. void main()
  6. {
  7. printf("Enter a line of text\n");
  8. reverse();
  9. }
  10. void reverse(void)
  11. {
  12. char c;
  13. if((c=getchar())!=E)
  14. reverse();
  15. putchar(c);
  16. return;
  17. }
  18.  
  19.  
Time limit exceeded #stdin #stdout 15s 743424KB
stdin
Standard input is empty
stdout
Standard output is empty