public static void Main()
while (result != "1" && result != "2")
Console.WriteLine("Are you allowed to drink alcohol?");
Console.WriteLine("What country are you currently in?");
string country = Console.ReadLine();
country == "United Kingdom" ||
else if (country == "Canada")
else if (country == "USA")
else if (country == "Sweden" ||
else if (country == "Iran" ||
country == "Afghanistan" ||
else if (country == "Bangladesh")
Console.WriteLine("Sorry, try typing the country another way.");
Console.WriteLine("Eg. try 'UK' instead of 'United Kingdom'.");
Console.WriteLine("And use capital letters.");
private static void nineteenAge()
Console.WriteLine("How old are you? ");
string age = (Console.ReadLine());
if (int.TryParse(age, out x))
private static void eighteenAge()
Console.WriteLine("How old are you? ");
string age = (Console.ReadLine());
if (int.TryParse(age, out x))
private static void twentyoneAge()
Console.WriteLine("How old are you? ");
string age = (Console.ReadLine());
if (int.TryParse(age, out x))
private static void zeroAge()
Console.WriteLine("Go ahead: There is no minimum drinking age in this country.");
private static void muslimCountry()
Console.WriteLine("Are you a Muslim? 'Yes' or 'No'.");
string muslim = (Console.ReadLine());
private static void illegalCountry()
Console.WriteLine("Alcohol is illegal here.");
Console.WriteLine("Leave this country immediately.");
private static void yesResponse()
Console.WriteLine("You can legally drink alcohol.");
private static void noResponse()
Console.WriteLine("You cannot legally drink alcohol.");