I need this to been done recursively, it works but I was told that it is not recursive does anyone have any ideas or suggestions
#include <stdio.h>
#include <string.h>
#define TRUE 1
#define FALSE 0
main ()
{
char decision;
char str[30];
int isPalindrome = TRUE;
int choice = TRUE;
int i,j;
printf("Enter a word: ");
gets(str);
j = strlen(str) - 1;
i = 0;
while(i <= j && isPalindrome)
{
if(str[i] != str[j])
{
isPalindrome = FALSE;
}
i++;
j--;
}
if(isPalindrome)
{
printf("%s is a palindrome!\n", str);
}
else
{
printf("%s is not a palindrome\n", str);
}
printf("Would you like to enter another word? y or n \n");
scanf("%c", &decision);
if (decision == 'y') choice = TRUE;
else choice = FALSE;
}
}