> 数学 >
设计一个算法,统计所有三位数中能被7整除的数的个数,并给出表示这个算法的伪代码
人气:247 ℃ 时间:2019-11-08 17:01:31
解答
int i=999;
int count=0;
while(i>100){
if(i%7==0) count++;
i--;
}
printf("%d",count);
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版