private static int target;
private static int guess;
private static int count;
private static bool keepGoing;
public static void Main()
Console.WriteLine("Im thinking of a number between 1 and 20");
Console.Write("Enter your guess: ");
guess = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(guess + " is too low. Try again.");
else if(guess > target) {
Console.WriteLine(guess + " is too high. Try again.");
Console.WriteLine("Congratulations! " + guess + " is the correct guess");
Console.WriteLine("Figured it out in " + count + " guesses");