if语句的评级小程序
作者:互联网
#include<stdio.h>
int main()
{
int s;
scanf("%d",&s);
//printf("This is a score");
if("s<60")
{
printf("E\n");
}
else if("s>=60&&s<=70")
{
printf("D\n");
}
else if("s>=70&&s<=80")
{
printf("C");
}
else if("s>=80&&s<=90")
{
printf("B");
}
else if("90<=s")
{
printf("A");
}
}
c语言小白来了
标签:语句,小白来,int,评级,程序,else,&&,printf,main 来源: https://blog.csdn.net/weixin_59996065/article/details/121720697