方法1:
(for i in 1 to 9 do
(for n in 1 to 9 do
(print (i * n))
))
(for i in 1 to 9 do
(for n in 1 to 9 do
(print (i * n))
))
方法2:
(for i in 1 to 9 do
(for n in 1 to 9 do
(
ans = (i * n)
print (i as string + "*" + n as string + "=" + (i * n) as string ))
)
))
(for i in 1 to 9 do
(for n in 1 to 9 do
(
ans = (i * n)
print (i as string + "*" + n as string + "=" + (i * n) as string ))
)
))
沒有留言:
張貼留言