void main() { char str[5][10]={ "优秀","良好"哪猜,"中等","及格","不及搏顷格" },str1[20],c
printf("请输入成绩等级: ")scanf("%s",str1)c=str1[0]
if ( c>='A' &&c<='E' ) printf("成绩%c: %s\n",c,str[c-'A'])
else printf("无效的成绩等基缓陆级。\n")
}
#include <银烂羡stdio.h>void main(){int scorescanf("%d",&score)//输入成绩if(score>=90) printf("历滚优秀")else if(score>=70&&score<90) printf("良好")else if(score>锋拍=60&&score<70) printf("及格")else if(score<60) printf("不及格!")}#include<stdio.h>int main()
{
int nscore = 0
scanf("%d",&nscore)
if ( nscore >高派 90 )
{
printf("成绩优!\n")
}
else if ( nscore >80 )
{
printf("成绩良!\n")
}
else if ( nscore >60 )
{
printf("成绩毁烂及格!\n")
}
else
{
printf("成纤念漏绩不及格!\n")
}
return 0
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)