魔術師をめざして

魔術師を目指して、相場・数学・プログラム言語を研究しています。

lua③

キーボードから入力した内容をそのまま、
標準出力にプリイントするluaのプログラム。

for i=1,100 do
io.write "pls input any:"
ans=io.read()
print ("(".. i ..")".. ans)
if ans=="end" then
print "gooooooooood by!!!"
break
end
end

pythonなどが分かる人には、説名は不要だろう。