#include #include #include int main(int argc, char* argv[]){ //input char input[20]; char *pInput; int checker; int proceed = 1; while(proceed == 1){ printf("Enter a word: "); scanf("%s",input); pInput = input; checker = palindrome(pInput); if(checker){ printf("%s is a palindrome \n",input); }else{ printf("%s is NOT a palindrome \n",input); } printf("Press 1 to continue 0 to quit: "); scanf("%d", &proceed); printf("\n"); } } int palindrome(char *word){ int length; length = strlen(word); int i; for(i = 1; i < length; i++){ if(word[i -1] != word[length-i]){ return 0; break; }else{ return 1; } } }