码迷,mamicode.com
首页 > 其他好文 > 详细

信号报告

时间:2017-07-03 23:58:38      阅读:426      评论:0      收藏:0      [点我收藏+]

标签:rds   log   ext   sig   difficult   ase   ada   logs   weak   

#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;
}

}

  

信号报告

标签:rds   log   ext   sig   difficult   ase   ada   logs   weak   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!