c语言编程练习题:7-105 寻找250
作者:yunjinqi   类别:    日期:2023-05-31 11:26:44    阅读:122 次   消耗积分:0 分    

image.png

#include <stdio.h>
int main(){
    int num;
    int count=0;
    while (scanf("%d",&num)!=EOF){
        // 计算运算结果
        count++;
        if (num==250){printf("%d",count);break;}
    }
    return 0;
}


版权所有,转载本站文章请注明出处:云子量化, http://www.woniunote.com/article/230
上一篇:c语言编程练习题:7-104 新世界
下一篇:c语言编程练习题:7-106 求平方根序列前N项和