Do While Demo - C# Program

using System;
namespace DoWhileDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b, choice;
            Console.Write("Enter the value of A :");
            a = Convert.ToInt32(Console.ReadLine());
            Console.Write("Enter the value of B :");
            b = Convert.ToInt32(Console.ReadLine());
            do
            {
                Console.WriteLine("1. Addition");
                Console.WriteLine("2. Subtraction");
                Console.WriteLine("3. Multiplication");
                Console.WriteLine("4. Division");
                Console.Write("Enter your choice :");
                choice = Convert.ToInt32(Console.ReadLine());
            } while (choice < 1 || choice > 4);

            switch(choice)
            {
                case 1:
                    Console.WriteLine("{0}+{1}={2}", a, b, a + b);
                    break;
                case 2:
                    Console.WriteLine("{0}-{1}={2}", a, b, a - b);
                    break;
                case 3:
                    Console.WriteLine("{0}*{1}={2}", a, b, a * b);
                    break;
                case 4:
                    Console.WriteLine("{0}/{1}={2}", a, b,(float) a / b);
                    break;
            }
        }
    }
}