Logo

Programming-Idioms

History of Idiom 120 > diff from v17 to v18

Edit summary for version 18 by :
[Ruby] variable assignment added.

Version 17

2016-04-06, 20:00:00

Version 18

2016-04-06, 20:00:44

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
Code
n = gets.to_i