Lua "Hello" meme

Published at 26, November 2008, author art. Tags: fun, lua

Thanks to Eric for his funny programming contest.

In my previos post, I show, how to write this meme in bash. Today I had written it in lua:

print('Please enter your name: ')
name = io.stdin:read()
print('Please enter your age: ')
age = tonumber(io.stdin:read())

for i = 1, age do
    print(string.format("%2d) Hello, %s", i, name))
end

Pingbacks

permalink

18, November 2009, pingback from http://dwins.wordpress.com/2009/11/18...:

[Lua] http://aartemenko.com/texts/lua-hello-meme/

Comments

Subscribe on this post's comments

No comments. Wanna be first?

First, identify yourself and come back to leave comments.

If you wish to leave comment, please, identify yourself and then come back to this page.