I have a code:
int main()
{
printf("to exit the program type \"exit\":");
char s[40];
scanf("%s",s);
if(strcmp(s,"exit")==0)
{
exit(0);
}
else
{
int n;
printf("wrong");
}
return 0;
}
I want to when I enter "ExIt" it works. how can i change that?