Logo

Programming-Idioms

History of Idiom 120 > diff from v2 to v3

Edit summary for version 3 by :
[Pascal] Removed var/begin/end.

Version 2

2016-02-07, 15:44:08

Version 3

2016-02-07, 21:18:55

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
var 
 n: Integer;
begin
  read(n);
end.
Code
read(n);