#include<stdio.h>
#include<ctype.h>
#define ANSWER "Grant"
#define SIZE 40
char* s_gets(char*, int);
int main(void)
{
char try[SIZE];
int i = 0;
while (ANSWER[i] != '\0')
{
puts("Who is buried int Grant's tomb?");
s_gets(try, SIZE);
while (tolower(ANSWER[i]) == tolower(try[i]))
i++;
}
}
char* s_gets(char* st, int n)
{
char* ret_val;
ret_val = fgets(st, n, stdin);
while (*st != '\n' && *st != '\0')
st++;
if (*st == '\n')
*st = '\0';
else
while (getchar() != '\n')
continue;
return ret_val;
}