提交 9e084d86 编写于 作者: qq_39446688's avatar qq_39446688

Add new file

上级 d188561c
#include <stdio.h>
#include <stdlib.h>
int main()
{
int sc=0;
scanf("%d",&sc);
int t=sc/10;
switch(t)
{
case 10:case 9:
printf("Letter grade: A");
break;
case 8:
printf("Letter grade: B");
break;
case 7:
printf("Letter grade: C");
break;
case 6:
printf("Letter grade: D");
break;
case 0 ... 5:
printf("Letter grade: F");
break;
default:
printf("Error, grade must be between 0 and 100.");
break;
}
return 0;
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册