满意答案
mmxlaocr
2015.03.26
采纳率:41% 等级:7
已帮助:458人
#include
int main(void)
{
int Readability;
int Strength;
int a;
a=0;
scanf("%d",&a);
Strength=a/10;
Readability=a-Strength*10;
switch(Strength){
case 1:printf("Faint signals, barely perceptible");break;
case 2:printf("Very weak signals");break;
case 3:printf("Weak signals");break;
case 4:printf("Fair signals");break;
case 5:printf("Fairly good signals");break;
case 6:printf("Good signals");break;
case 7:printf("Moderately strong signals");break;
case 8:printf("Strong signals");break;
case 9:printf("Extremely strong signals");break;
}
printf(",");
switch(Readability){
case 1:printf("unreadable");break;
case 2:printf("barely readable, occasional words distinguishable");break;
case 3:printf("readable with considerable difficulty");break;
case 4:printf("readable with practically no difficulty");break;
case 5:
printf("perfectly readable");
break;
}
printf(".\n");
return 0;
}
00分享举报