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

24 lines
319 B
C
Raw Normal View History

2024-11-15 09:07:17 +00:00
#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;
}