C
Jump to navigation
Jump to search
int palindroma(char *pnt){
int dim=strlen(pnt)-1; int l=dim/2; int k;
for(k=0;k<=l;k++) { if(pnt[k]!=pnt[dim]) return 0; else dim--; } return 1; }
int palindroma(char *pnt){
int dim=strlen(pnt)-1; int l=dim/2; int k;
for(k=0;k<=l;k++) { if(pnt[k]!=pnt[dim]) return 0; else dim--; } return 1; }