switch((int)(grade/10))
case(10):chgrade ='A' ;break;
case(9): chgrade ='A';break;
case(8): chgrade ='B';break;
case(7): chgrade ='C';break;
case(6): chgrade ='D';break;
default: printf("%sn","fail!");
}
switch((int)(grade/10))
case(10):chgrade ='A' ;break;
case(9): chgrade ='A';break;
case(8): chgrade ='B';break;
case(7): chgrade ='C';break;
case(6): chgrade ='D';break;
default: printf("%sn","fail!");
}