C Sharp/C# Program to Multiply two Floating Point Numbers Entered by User

  C# Projects

C# Program to Multiply two Floating Point Numbers Entered by User

 class Program
    {
        static void Main(string[] args)
        {
            float number1,number2,product;

            Console.Write("Enter a number1:");
            number1 = Convert.ToSingle(Console.ReadLine());
            Console.Write("Enter a number2:");
            number2 = Convert.ToSingle(Console.ReadLine());

            product = number1 * number2;

            Console.WriteLine("{0} * {1} = {2}",number1,number2, product);
            Console.ReadLine();
        }
    }