using System.Collections.Generic;
public static void Main()
Console.WriteLine("Welcome to the month guessing game!");
Console.WriteLine("I will try to guess your birth month and age!");
while (playing == true) {
Console.WriteLine("Alright, so first of all are you born in 2008 or 2007?");
string answer = Console.ReadLine();
months = new List<string>{ "September", "October", "November", "December"};
months = new List<string>{ "Janurary", "February", "March", "April", "May", "June", "July", "August"};
Console.WriteLine("You must've put in the wrong year!");
months = new List<string>{ "Janurary", "February", "March", "April", "May", "June", "July", "August"};
var random = new Random();
int index = random.Next(months.Count);
Console.WriteLine("I guess...");
Console.WriteLine(months[index]);
Console.WriteLine("Was this correct?");
Console.WriteLine("Type yes or no?");
string ans2 = Console.ReadLine();
if (ans2 == "yes" || ans2 == "Yes") {
Console.WriteLine("Im a genius!");
Console.WriteLine("You must've put in the wrong year!");
months = new List<string>{ "September", "October", "November", "December"};
Random rnd = new Random();
int index2 = rnd.Next(months.Count);
Console.WriteLine("I guess...");
Console.WriteLine(months[index2]);
Console.WriteLine("Was this correct?");
Console.WriteLine("Type yes or no?");
string ans2 = Console.ReadLine();
if (ans2 == "yes" || ans2 == "Yes") {
Console.WriteLine("Im a genius!");