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

我什么都不懂,但是我却什么都想懂。

文章分类

全部博文(32)

文章存档

2014年(32)

分类: C#/.net

2014-11-28 13:44:32

#include


int main()
{


    int score;
    scanf("%d",&score);
    if(score>100)
    {
        printf("亲,您输入的分数有误,请查正后再次输入\n");
        return 0;
    }
    if(score<0)
    {
        printf("亲,您输入的分数有误,请查正后再次输入\n");
        return 0;
    }
    if(score>=90 )
    {
    if(score<=100)
    {
    printf("成绩等级是 'A'\n");
    }


    }
    else if(score>=80 )
    {
    if(score<=89)
    {
     printf("成绩等级是'B'\n");
    }

    }
    else if( score >=70)
    {
    if(score<=79)
    {
    printf("成绩等级是'C'\n");
    }
    
    }
    else if( score>=60 )
    {
    if(score<=69)
    {


    printf("成绩等级是'D'\n");
    }

    }
    else if( score>=0)
    {
    if(score<=59)
    printf("成绩等级是'E'\n");

    }
   return ;
}
阅读(1403) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~