Chinaunix首页 | 论坛 | 博客
  • 博客访问: 84174
  • 博文数量: 21
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 243
  • 用 户 组: 普通用户
  • 注册时间: 2014-09-09 14:25
个人简介

哀其不幸 怒其不争

文章分类

全部博文(21)

文章存档

2014年(21)

分类: C/C++

2014-11-27 20:41:43


点击(此处)折叠或打开

  1. #include <stdio.h>
  2. int main()
  3. {
  4.     int score;
  5.     scanf("%d", &score);
  6.     if(score<0)
  7.     {
  8.     printf("你是学渣\n");
  9.     return 0;
  10.     }
  11.     else if(score>100)
  12.     {
  13.     printf("你是学渣\n");
  14.     return 0;
  15.     }
  16.     else if(score<100)
  17.     if(score>=90)
  18.     {
  19.     printf("成绩是A \n");
  20.     return 0;
  21.     }
  22.     else if(score<=89)
  23.     
  24.     if(score>=80)
  25.     {
  26.     printf("成绩是B \n");
  27.     return 0;
  28.     }
  29.     else if(score<=79)
  30.     
  31.     if(score>=60)
  32.     {
  33.     printf("成绩是C \n");
  34.     return 0;
  35.     }
  36.     
  37.     else if(score<60)
  38.     
  39.         if(score>=0)
  40.         {
  41.     printf("成绩是D \n");
  42.     return 0;
  43.     }

  44.     return 0;    
  45.     
  46.     
  47.     

  48. }

阅读(1341) | 评论(0) | 转发(0) |
0

上一篇:用c解决小的计算题

下一篇:入门c语言

给主人留下些什么吧!~~