题解 | #字符串反转#
字符串反转
https://www.nowcoder.com/practice/e45e078701ab4e4cb49393ae30f1bb04
#include <stdio.h> int main() { char str[1000] ; char c; int i = 0; while(scanf("%c",&c) != EOF){ str[i] = c; i++; } while(i != 0){ printf("%c",str[i-2]); i--; } return 0; }