> 其他 >
编程序,输出各位数之和为9,且能被5整除的五位数的个数.
人气:320 ℃ 时间:2020-04-21 08:45:35
解答
s=0
for i=10000 to 99999
if left(i,5,1)+left(i,4,1)+left(i,3,1)+left(i,2,1)+left(i,1,1)=9 and mod(i,5)=0
s=s+1
endif
推荐
猜你喜欢
© 2026 79432.Com All Rights Reserved.
电脑版|手机版