using System.Collections.Generic;
public static void Main()
Dictionary <int, int> dict = new Dictionary<int, int>();
Random rnd = new Random();
Dictionary<int, int>.KeyCollection keys = dict.Keys;
int num = rnd.Next(1,21);
int prize = rnd.Next(1,10001);
foreach(int key in keys){
foreach(KeyValuePair<int, int> pair in dict)
Console.WriteLine("{0}, {1}",
Console.WriteLine("Please input a number from 1 to 20");
string input = Console.ReadLine();
int x= Int32.Parse(input);
foreach(int key in keys){
Console.WriteLine("You earned {0} dollars!",dict[key]);
Console.WriteLine("You are lucky! You could have lost if you guessed the following numbers: ");
for (int i=1; i<21; i++){
if (dict.ContainsKey(i)==false){
Console.WriteLine("BANG! You die!");
foreach(KeyValuePair<int, int> pair in dict){
Console.WriteLine("You are unlucky! If you guessed {0}. you would have won the most money!",maxK);