fork(1) download
  1. #include <stdio.h>
  2. int main(int argc, char const *argv[])
  3. {
  4. int score;
  5. printf("请输入你的成绩 ");
  6. scanf("%f", &score);
  7. if (score >= 90){
  8. printf("A\n");
  9. }else if (score >= 80){
  10. printf("B\n");
  11. }else if (score >= 70) {
  12. printf("C\n");
  13. }else if(score>=60){
  14. printf("D\n");
  15. }else{
  16. printf("E\n");
  17. }
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 5272KB
stdin
85
stdout
请输入你的成绩  A