mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-12-16 15:44:39 +00:00
19 lines
218 B
C
19 lines
218 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
char s[100];
|
|
|
|
int main() {
|
|
gets(s);
|
|
|
|
int len = strlen(s);
|
|
|
|
for (int i = len - 1; i >= 0; i--) {
|
|
printf("%c", s[i]);
|
|
}
|
|
|
|
printf("\n");
|
|
|
|
return 0;
|
|
}
|