C Sharp/ C# program Multiply Two Floating Point Numbers in C# Console

  C# Projects

Multiply Two Floating Point Numbers in C# Console

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

            product = number1 * number2;

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