過去ログ

ゴンとも
十進Basic で ア=a,イ=b,ウ=c,エ=d,オ=e,カ=f
赤=1,白=2,オレンジ=3として

for a=1 to 3
for b=1 to 3
if b=a then goto 50
for c=1 to 3
if c=b then goto 40
for d=1 to 3
if d=c then goto 30
for e=1 to 3
if e=d then goto 20
for f=1 to 3
if f=e or f=a then goto 10
let s=s+1
10 next f
20 next e
30 next d
40 next c
50 next b
60 next a
print s
end

f9押して 66・・・・・・(答え)
豊川市   11月26日(木) 0:08:22   MAIL:fttnm528@ybb.ne.jp   43930

過去問題一覧へ戻る