分支-01. 超速判断

 1 /**
 2 *B1-分支-01. 超速判断(10)
 3 *C语言实现
 4 *测试通过
 5 *
 6 */
 7 
 8 #include <stdio.h>
 9 #include <stdlib.h>
10 
11 int main()
12 {
13     int speed;
14     
15     scanf("%d",&speed);
16     if(speed<0||speed>500)
17         exit(1);
18         
19     if(speed>60)
20         printf("Speed: %d - Speeding\n",speed);
21     else
22         printf("Speed: %d - OK\n",speed);
23         
24     return 0;
25 }

 

posted @ 2014-06-03 11:32  Boomkeeper  Views(572)  Comments(0Edit  收藏  举报
最好的流量统计 网站流量计数器