I was trying to make a box using a while loop in c sharp, but it isn't working. I am a beginner to C# so help would be appreciated.

Code:

```

using System;

namespace whilebox2
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Enter a number: ");
            int number = Convert.ToInt32(Console.ReadLine());
            int x = 0;
            int y = 0;

            while (x <= number)
            {
                x++;
                while (y <= number)
                {
                    Console.Write("*");
                    y++;
                }
                Console.WriteLine();
            }
            Console.ReadLine();
        }
    }
}

```

It prints:

```
*
*
*
*
*

```

If inputted 5.