fork download
  1. #include<stdio.h>
  2. void rev(char *x)
  3. {
  4. if(*x)
  5. {
  6. rev(x+1);
  7. printf("%c",*x);
  8. }
  9.  
  10. }
  11. int main()
  12. {
  13. char a[100];
  14. scanf("%[^\n]s",a);
  15. rev(a);
  16. }
Success #stdin #stdout 0s 4328KB
stdin
aedf
stdout
fdea