#include
main()
{
int iNum;
sacnf("%d", &iNum);
switch (iNum / 10)
{
case 10:
case 9 : printf("An");break;
case 8 : printf("Bn");break;
case 7 : printf("Cn");break;
case 6 : printf("Dn");break;
default: printf("En");break;
}
}
看的明白吧?
#include
main()
{
int iNum;
sacnf("%d", &iNum);
switch (iNum / 10)
{
case 10:
case 9 : printf("An");break;
case 8 : printf("Bn");break;
case 7 : printf("Cn");break;
case 6 : printf("Dn");break;
default: printf("En");break;
}
}
看的明白吧?