首页 > 其他 > 详细

信号报告

时间:2017-07-03 23:37:37      阅读:409      评论:0      收藏:0      [点我收藏+]
#include<stdio.h>

int main()
{
int t;
scanf("%d",&t);
int m=t/10;
int n=t%10;

switch(n){
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;
}
switch(m){
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;
}

}

  

信号报告

原文:http://www.cnblogs.com/love625/p/7113347.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!