using System;
using System.Collections.Generic;
namespace ConsoleApplication_C_Sharp
{
static class Program
{
static void Main()
{
var dic = new Dictionary<string, int>();
dic.Add("vb.net", 9);
dic.Add("java", 6);
dic.Add("php", 7);
dic.Add("python", 3);
dic.Add("c#", 4);
var keys = new List<string>(dic.Keys);
keys.Sort();
foreach (string s in keys)
Console.WriteLine("{0} : {1}", s, dic[s]);
}
}
}
/*
run:
c# : 4
java : 6
php : 7
python : 3
vb.net : 9
*/