Logo

Programming-Idioms

History of Idiom 120 > diff from v6 to v7

Edit summary for version 7 by :
New D implementation by user [cym13]

Version 6

2016-02-12, 11:49:59

Version 7

2016-02-12, 22:54:42

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.

Imports
import std.stdio;
Code
readf("%d", &n);
Doc URL
http://dlang.org/library/std/stdio/readf.html