题解 | #字符串反转#
字符串反转
https://www.nowcoder.com/practice/e45e078701ab4e4cb49393ae30f1bb04
#include <stdio.h> int main() { char ayy[1000]; int len; int i; scanf("%s",ayy); len = strlen(ayy); for (i = len-1; i>=0; i--) { printf("%c",ayy[i]); } return 0; }