update
This commit is contained in:
parent
d72ad10e0e
commit
1be7252d9c
23
Code/dafen.c
Normal file
23
Code/dafen.c
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#include<stdio.h>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
float a;
|
||||||
|
printf("请输入一个分数:\n");
|
||||||
|
scanf("%f", &a);
|
||||||
|
if(a <= 100 && a >= 90)
|
||||||
|
printf("A\n");
|
||||||
|
else if(a <= 90 && a >= 80)
|
||||||
|
printf("B\n");
|
||||||
|
else if(a < 80 && a >= 70)
|
||||||
|
printf("C\n");
|
||||||
|
else if(a < 70 && a >= 60)
|
||||||
|
printf("D\n");
|
||||||
|
else if(a < 60 && a >= 0)
|
||||||
|
printf("E\n");
|
||||||
|
else
|
||||||
|
printf("错误\n");
|
||||||
|
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
BIN
Code/output/test
BIN
Code/output/test
Binary file not shown.
@ -1,8 +1,12 @@
|
|||||||
#include<stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
printf("hello world!\n");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user