過去ログ

ゴンとも
十進basicで以下でした。

let s=0
for a=1 to 9
for b=0 to 9
for c=0 to 9
for d=0 to 9
for e=0 to 9
IF a+b+c+d+e=a*b*c*d*e THEN LET s=s+1
NEXT e
next d
next c
next b
next a
print s
END

f9押して40・・・・・・(答え)
豊川市   10月27日(木) 5:37:13   MAIL:fttnm528@ybb.ne.jp   38521

過去問題一覧へ戻る