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