/**
文件名称:成绩判定.c
作者:安理计算机 杨腾飞
日期:2019.2.10
版本:v1.0
问题描述:对不同分数段的同学进行评判
本质:if…else if…的应用
*/
#include<stdio.h>
main()
{
int grades; //定义输入的成绩
printf("Please input your grades!\n");
scanf("%d",&grades);
if(grades>100)
{
puts("The top grades is 100!!!\n");
}
else if(grades>=90)
{
puts("You nearly catch me!\n");
}
else if(grades<90&&grades>=80)
{
puts("You shuold work harder!!!\nYou can get more!!!\n");
}
else if(grades<80&&grades>=60)
{
puts("You are so lukey that I wouldn't talk with you!!!\n");
}
else if(grades<60)
{
puts("You are so lazy!!!\nWhat had you done during the near three monthes!!!\n");
}
}