Do While Demo - C# Program

using System;
namespace DoWhileDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            int num;
            char choice;
            do
            {
                Console.WriteLine("Enter the Number");
                num = Convert.ToInt32(Console.ReadLine());
                
                Console.WriteLine("Square of {0} is {1}", num, num * num);
                Console.WriteLine("Do you want to enter another number(y/n)?");
                choice = Convert.ToChar(Console.ReadLine());
            } while (choice == 'y' || choice == 'Y');
        }
    }
}