using System.Collections.Generic;
using System;
class Program
{
static void Main() {
var map = new Dictionary<string, int> {
["c"] = 1,
["cpp"] = 2,
["java"] = 3,
["csharp"] = 4
};
foreach(var entry in map) {
Console.WriteLine("Key:" + entry.Key + " Value:" + entry.Value);
}
}
}
/*
run:
Key:c Value:1
Key:cpp Value:2
Key:java Value:3
Key:csharp Value:4
*/