C# | Math.BigMul() Method
Last Updated :
05 Aug, 2021
In C#, BigMul() is a method class method. This method is used to compute the full product of two 32-bit numbers.
Syntax:
public static long BigMul(int a, int b)
Parameters:
a: It is the first number to be multiplied and the type of this parameter is System.Int32.
b: It is the Second number to be multiplied and the type of this parameter is System.Int32.
Return Type: This method returns a number containing the product of the specified numbers and return type of this method is System.Int64.
Example:
C#
using System;
namespace ConsoleApplication1 {
class Geeks {
static void Main( string [] args)
{
Int32 x1 = 233232322;
Int32 x2 = 189222338;
long product = Math.BigMul(x1, x2);
Console.WriteLine( "The product of the two numbers is " + product);
}
}
}
|
Output:
The product of the two numbers is 44132765266008836
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...