fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. var array= new int[]{1, 2, 3};
  8. foreach (var i in array)
  9. {
  10. Console.WriteLine (i);
  11. }
  12.  
  13. array[1] = array[2];
  14.  
  15. foreach (var j in array)
  16. {
  17. Console.WriteLine (j);
  18. }
  19. }
  20. }
Success #stdin #stdout 0.03s 33904KB
stdin
Standard input is empty
stdout
1
2
3
1
3
3