1
0
mirror of https://github.com/renbaoshuo/202401-programming-assignments.git synced 2024-11-23 15:48:42 +00:00
202401-programming-assignments/【实践课外】9.数组3/7-4 数组-无聊的菇菇一族.c

24 lines
319 B
C

#include <stdio.h>
#include <string.h>
int n;
char s[105];
int main() {
scanf("%d", &n);
for (int i = 1; i <= n; i++) {
scanf("%s", s);
int len = strlen(s);
for (int j = len - 1; j >= 0; j--) {
printf("%c", s[j]);
}
printf("\n");
}
return 0;
}