c语言问题,高手进
各位给我分析一下下面的这个程序中的一条语句我不大懂
程序如下;
#include "stdio.h"
#include "conio.h"
main()
{
int score;
char grade;
printf("please input a score\n");
scanf("%d",&score);
grade=score>=90?'A':(score>=60?'B':'C');
printf("%d belongs to %c",score,grade);
getch();
}
grade=score>=90?'A':(score>=60?'B':'C');这条语句是怎样运算的