//Write a line backward #include <stdio.h> void prn_it(); int main() { printf("Input a line: "); prn_it(); printf("\n\n"); return 0; } void prn_it() { char c; if((c=getchar())!= '\n')//犯了一个c==getchar()小错误 prn_it(); putchar(c); }