#include <stdio.h>
#include <string.h>
void le_string(char S[]){
scanf("%s", S);
}
int palindromo( char S[]){
int i, tam;
tam = strlen(S);
for(i = 0; i < tam / 2; i++){
if(S[i] != S[tam - 1 - i]){
return 0;
}
}
return 1;
}
int main() {
char S[100];
le_string(S);
int eh_palindromo = palindromo(S);
printf("%d", eh_palindromo);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: