using System.Collections.Generic;
public delegate void del(string x);
public static void Main(string[] args)
Dictionary<string, int> Directory = new Dictionary<string, int>();
Console.WriteLine("Enter the Number of inputs");
int count = int.Parse(Console.ReadLine());
for (int i = 0; i < count; i++)
Console.WriteLine("Enter the Name " + i + " : ");
string Name = Console.ReadLine();
Console.WriteLine("Enter the Age " + i + " : ");
int Age = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Press key to display the contents of your dictionary..");
foreach (var item in Directory)
Console.WriteLine("Name : " + item.Value);
Console.WriteLine("Age : " + item.Key);