调试后没输出,不知怎么回事
a = 0
function main()
for j=1, 9 do
for i=1, 9 do
a=a+1
if a>=10 and i<=j then
print (string.format("%d x %d =%s",j,i,j*i.."\n"));sleep(10000)
elseif a<10 and i<=j then
print (string.format("%d x %d =%s",j,i,j*i.."\n"));sleep(1000)
end
end
end
end
a = 0
function main()
for j=1, 9 do
for i=1, 9 do
a=a+1
if a>=10 and i<=j then
print (string.format("%d x %d =%s",j,i,j*i.."\n"));sleep(10000)
elseif a<10 and i<=j then
print (string.format("%d x %d =%s",j,i,j*i.."\n"));sleep(1000)
end
end
end
end