2 using System
.Collections
.Generic
;
6 static IEnumerable
<int> FromTo (int from, int to
)
8 while (from <= to
) yield return from++;
13 IEnumerable
<int> e
= FromTo (1, 10);
16 foreach (int x
in e
) {
17 foreach (int y
in e
) {
19 Console
.Write ("{0,3} ", x
* y
);
24 Console
.WriteLine (i
);