新手求帮助!不知道怎么改了,谢谢!
#include<stdio.h>main()
{
char answer;
printf("Hi,I love you!\n");
printf("Do you love me?(Y/N)\n");
scanf("%c",&answer);
while(1)
{
if(answer=='n'&&answer=='N');
{
printf("Do you love me?(Y/N)");
}
else if(answer=='y'&&answer=='Y')
{
printf("So great! kiss!");
exit(0);
}
else
printf("Sorry,I don't understand.");
}
}