c语言编程练习题:7-21 超速判断
作者:yunjinqi   类别:    日期:2023-05-29 13:15:23    阅读:117 次   消耗积分:0 分    

image.png

#include <stdio.h>

int main(void){
    int speed;
    if (scanf("%d",&speed)!=0){
        if (speed>60){printf("Speed: %d - Speeding",speed);}
        else{printf("Speed: %d - OK",speed);}
    }else{printf("输入数据存在错误");}
    
    return 0;
}


版权所有,转载本站文章请注明出处:云子量化, http://www.woniunote.com/article/146
上一篇:c语言编程练习题:7-20 简单计算器
下一篇:c语言编程练习题:7-22 用天平找小球