public static void Main()
Console.WriteLine("Hello, write your name");
name = Console.ReadLine();
Console.WriteLine("Now, write a number between 1 and 10");
num = int.Parse(Console.ReadLine());
for (int c = 1; c<= 5; c++)
if (num <= 5 && num >= 1)
for (int c= 1; c<= 10; c++)
if (num <= 10 && num >=6)
Console.WriteLine("The number is out of range try again");