0
why not int[ ] a = new int[10]; int k=0; for (; k < 10; k++) { a[k] = k*2; } foreach (k in a) { Console.WriteLine(k); }
2 Respuestas
+ 1
No you can........see (conditional and loops /The for loop/ page 3)
0
foreach statement must include both type & identifier .