2026-05-08 20:22:55 +03:00
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
char pol[100];
|
|
|
|
|
printf("Enter word ");
|
|
|
|
|
scanf("%s", pol);
|
|
|
|
|
int len = strlen(pol);
|
2026-05-08 22:52:27 +03:00
|
|
|
for(int i = 0; i < len / 2; i++) {
|
|
|
|
|
char temp = pol[i];
|
|
|
|
|
pol[i] = pol[len - 1 - i];
|
|
|
|
|
pol[len - 1 - i] = temp;
|
2026-05-08 20:22:55 +03:00
|
|
|
}
|
2026-05-08 22:52:27 +03:00
|
|
|
printf("%s\n", pol);
|
2026-05-08 20:22:55 +03:00
|
|
|
return 0;
|
|
|
|
|
}
|