33.零起点学算法27——等级分制度

#include<stdio.h>
int main()
{
    int a,b;        
    while(scanf("%d%d",&a,&b)!=EOF)
    {
        if(1500+a*5+b*5>=1800)
        printf("A");
        else if(1500+a*5+b*5>=1700)
        printf("B");
        else if(1500+a*5+b*5>=1600)
        printf("C");
        else
        printf("D");        
    }
        return 0;
}

猜你喜欢

转载自www.cnblogs.com/Estwind/p/9751555.html