超速判断(10)

#include<stdio.h>
int main()
{
	int n;
	while(scanf("%d",&n)!=EOF)
	{
		if(n<0||n>500) continue;
		else if(n<=60) printf("Speed: %d - OK\n",n);
		else printf("Speed: %d - Speeding\n",n);
	}
	return 0;
}

posted on 2015-01-21 14:01  赛亚人  阅读(237)  评论(0编辑  收藏  举报