Up

foreach.d

1 import std.stdio;
2 
3 void main() {
4   int[] myarray = [1,2,5,12];
5  
6   foreach (i; myarray) {
7     writefln(i);
8   } 
9 }