public static void Main()
Console.WriteLine("insert a number");
int num = int.Parse(Console.ReadLine());
Random rnd = new Random();
int random = rnd.Next(1, 101);
Console.WriteLine(random);
Console.WriteLine("the next number has to be less than the former ");
Console.WriteLine("the next number has to be more than the former ");
Console.WriteLine("insert another number");
num = int.Parse(Console.ReadLine());
Console.BackgroundColor = ConsoleColor.Cyan;
Console.ForegroundColor = ConsoleColor.Green;
Console.BackgroundColor = ConsoleColor.Yellow;
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Good job! it's the number");
Console.WriteLine("numbers of attempts is {0}", (count + 1));