Mega Code Archive

 
Categories / C# / Development Class
 

Math BigMul Produces the full product of two 32-bit numbers

using System; class Sample  {     public static void Main()      {         int int1 = Int32.MaxValue;         int int2 = Int32.MaxValue;         long longResult;         longResult = Math.BigMul(int1, int2);         Console.WriteLine("Calculate the product of two Int32 values:");         Console.WriteLine("{0} * {1} = {2}", int1, int2, longResult);     } }