Código C++:
Ver original#include<iostream>
#include <string.h>
#include<stdio.h>
using namespace std;
int main(){
char frase[30];
int tam,i;
bool band= true;
char resp[20];
cout<<"ingresa la frase: ";
while(i<tam&&band){
if(frase[i]==frase[tam]){
i++;
tam--;
}else{
band= false;
}
}
if(i>tam){
strcpy(resp
,"si es palindromo"); }else{
strcpy(resp
,"no es palindromo"); }
cout<<resp;
}