实现不了循环,各位大神帮帮忙
#include "stdafx.h"int main(int argc, char* argv[])
{
int score;
char grade;
char i;
judge:
printf("Please input the score:\n");
scanf("%d",&score);
grade=score>=90?'A':score>=60?'B':'C';
printf("%d is grade %c\n",score,grade);
printf("Continue? Input Y or N:\n");
scanf("%c",&i);
if(i=='Y')
goto judge;
return 0;
}
/*
本来想再次输入判断等级
但程序运行最后输出Continue? Input Y or N: 接着就是Press any key to continue
不知道怎么回事啊 麻烦各位大神帮忙看看啊
*/