switch语句,switch括号里该怎么输入?求大佬告知。
#include<stdio.h>main()
{
float grade;
printf("input grade:");
scanf("%f",&grade);
switch()
{
case 10:
case 9:printf("A\n");break;
case 8:printf("B\n");break;
case 7:printf("C\n");break;
case 6:printf("D\n");break;
default:printf("E\n");
}
}