ADVERTISEMENT

ADVERTISEMENT

ADVERTISEMENT

VB.Net program to produce the full product of two 32-bit integer numbers

Here, we are going to learn how to produce the full product of two 32-bit integer numbers in VB.Net?
Submitted by Nidhi, on December 02, 2020

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.

Program/Source Code:

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 »

ADVERTISEMENT
ADVERTISEMENT




Comments and Discussions

ADVERTISEMENT

ADVERTISEMENT

ADVERTISEMENT

Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.