foreach loop with block statements

CSharp · Console

/Program.cs

using System;
using System.Collections.Generic;
					
public class Program
{
	public static void Main()
	{
		int[] integerValues = { 1, 2, 3, 4 };
		
		foreach (int value in integerValues)
		{
			System.Console.WriteLine(value);
		}
		
	}
}
;