import std.stdio; void main(){ int[] a; int c; foreach (i; 0 .. 5) { readf(" %s", &c); a ~= c; } writeln(a); a ~= 156; writeln(a);}
1 2 3 4 5
[1, 2, 3, 4, 5] [1, 2, 3, 4, 5, 156]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!