题解 | #反序输出#
反序输出
https://www.nowcoder.com/practice/171278d170c64d998ab342b3b40171bb
#include <stdio.h> #include <string.h> int main(){ char str[20]; while (scanf("%s", str) != EOF){ int len = strlen(str); for (int i = len-1; i >= 0; --i) { printf("%c", str[i]); } printf("\n"); } return 0; }