#include <stdio.h>
#include <stdlib.h>
int main()
{
char word[50];
int wordLength, i, reverseCount;
reverseCount = 0;
system( " color F5 " );
printf( "\n How many letters does the word have? : " );
scanf( "%i", &wordLength );
printf( " \n Enter word, letter by letter " );
for( i = 0; i <= wordLength; i++ );
{
scanf( "%c", &word[i] );
}
while( reverseCount != 0 )
{
for( reverseCount = i - 1; reverseCount != 0; reverseCount-- && i++ )
{
i = 0;
if( word[i] != word[reverseCount] )
{
printf( " \n Word is not a palindrome. " );
}
}
}
system( " pause " );
return 0;
}
Help? It just without ends anything being inputted.