public class HantakGaming
public static void Main()
int total = 0; int TheGame = 0;
Console.Write("Click 1 if you like to choose Head\n");
Console.Write("Click 2 if you like to choose Tails\n");
Console.Write("Pick X if you want to stop the game\n");
Console.Write("Input you choice: \n");
while ((Guess = Convert.ToChar(Console.ReadLine())).ToString().ToLower() != "x")
int Choice = new Random().Next(2);
Console.WriteLine("Congratiolation you guess it correctly!");
Console.WriteLine("Would you like to continue? Click x If you want to stop the game");
Console.WriteLine("Im sorry you Lose\nPress X if you want to stop");
Console.WriteLine("Congratiolation you guess it correctly!");
Console.WriteLine("Would you like to continue? Click x If you want to stop the game");
Console.WriteLine("I am sorry you lose\nPress X if you want to stop");
Console.WriteLine("\nYou won {0}", total);