题解 | #数字颠倒#
数字颠倒
https://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe
#include <stdio.h> int main() { char arr1[11] = { 0 }; scanf("%s", arr1); int i = 0; i = strlen(arr1) - 1; int j = 0; for (j = i; j >= 0; j--) { printf("%c", arr1[j]); } return 0; }