Home »
VB.Net »
VB.Net Programs
VB.Net program to produce the full product of two 32-bit integer numbers
By Nidhi Last Updated : November 16, 2024
Producing the full product of two 32-bit integer numbers
Here, we will get the full product of two 32-bit integer numbers using the BigMul() method of Math class, and print the product on the console screen.
VB.Net code to produce the full product of two 32-bit integer numbers
The source code to produce the full product of two 32-bit integer numbers is given below. The given program is compiled and executed successfully.
'VB.Net program to produce the full product
'of two 32-bit integers.
Module Module1
Sub Main()
Dim num1 As Integer = 123456
Dim num2 As Integer = 654321
Dim product As Long = 0
product = Math.BigMul(num1, num2)
Console.WriteLine("Multiplication is : {0}", product)
End Sub
End Module
Output:
Multiplication is : 80779853376
Press any key to continue . . .
Explanation:
In the above program, we created a module Module1 that contains the Main() method. In the Main() method we created two local variables num1, num2 that are initialized with 12345 and 654321 respectively.
product = Math.BigMul(num1, num2)
Console.WriteLine("Multiplication is : {0}", product)
In the above code, we used BigMul() method to produce the full multiplication of two 32-bit integer numbers.
VB.Net Basic Programs »