Logo

Programming-Idioms

History of Idiom 120 > diff from v16 to v17

Edit summary for version 17 by :
New Ruby implementation by user [steenslag]

Version 16

2016-02-18, 18:57:40

Version 17

2016-04-06, 20:00:00

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
gets.to_i