static void Main(string[] args)
Console.WriteLine("LETS SEE IF YOU HAVE MAGIC");
Console.WriteLine("WANNA TRY??");
Console.WriteLine("FOLLOW THE STEPS");
Console.WriteLine("I'm thinking of a number between 1 and 10. Can you guess it?");
Console.WriteLine(" you will be given 3 attemps only");
System.Random rd = new Random();
for (int i = 1; i <= 3; i++)
Console.Write("ATTEMPT " + i + ": Enter the your number: ");
int n = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Congrats!! You guessed right!y");
int diff = (int)(Math.Abs(t - n));
Console.WriteLine("Your guess is VERY HIGH");
Console.WriteLine("Your guess is VERY LOW");
Console.WriteLine("Your answer is wrong The correct number is: " + t);
Console.WriteLine("You want to try again??");
Console.WriteLine("yes or no");
num = Console.ReadLine();
Console.WriteLine("please enter a number");
} while (num.Equals("yes"));
Console.WriteLine("CONGRATS YOU'R CORRECT");