题解 | #数组逆置#
数组逆置
https://www.nowcoder.com/practice/b4f598480524493aae4686947fbf31dc
#include <stdio.h> #include <string.h> int main() { char s[210]; while (scanf("%s", s) != EOF) { int len=strlen(s); for (int i=len-1; i>=0; i--) { printf("%c",s[i]); } printf("\n"); } return 0; }