दो 32-बिट संख्याओं के गुणनफल को खोजने के लिए Math.BigMul() विधि का उपयोग करें।
हमारी दो संख्याएँ निम्नलिखित हैं।
int one = 345272828; int two = 887685744;
अब, उत्पाद प्राप्त करें।
long res; res = Math.BigMul(one, two);
उदाहरण
using System;
using System.Globalization;
class Demo {
static void Main() {
int one = 345272828;
int two = 887685744;
long res;
res = Math.BigMul(one, two);
Console.WriteLine("{0} * {1} = {2}", one, two, res);
}
} आउटपुट
345272828 * 887685744 = 306493767206164032