Logo

Programming-Idioms

History of Idiom 120 > diff from v18 to v19

Edit summary for version 19 by :
New Lua implementation by user [Nepta]

Version 18

2016-04-06, 20:00:44

Version 19

2016-04-07, 08:20:32

Idiom #120 Read integer from stdin

Read an integer value from the standard input into variable n.

Idiom #120 Read integer from stdin

Read an integer value from the standard input into variable n.

Code
io.read("n")
Doc URL
http://www.lua.org/manual/5.3/manual.html#pdf-file:read