ADVERTISEMENT

ADVERTISEMENT

ADVERTISEMENT

VB.Net program to demonstrate the Math.Exp() method

Here, we are going to demonstrate the Math.Exp() method in VB.Net.
Submitted by Nidhi, on December 02, 2020

Here, we will demonstrate the Exp() method of Math class that will return e raised to the specific power.

Program/Source Code:

The source code to demonstrate the Math.Exp() method is given below. The given program is compiled and executed successfully.

'VB.Net program to demonstrate Math.Exp() method.

Module Module1

    Sub Main()
        Dim num As Integer = 0

        Console.Write("Enter the number: ")
        num = Integer.Parse(Console.ReadLine())

        Console.WriteLine("Result : {0}", Math.Exp(num))
    End Sub

End Module

Output:

OUTPUT
Enter the number: 10
Result : 22026.4657948067
Press any key to continue . . .

Explanation:

In the above program, we created a variable num, which is initialized with 0. After that, we read the value of num from the user.

Console.WriteLine("Result : {0}", Math.Exp(num))

In the above method, we used Exp() method of Math class that will return e raised to the specific power.

VB.Net Basic Programs »



ADVERTISEMENT



ADVERTISEMENT



Comments and Discussions

ADVERTISEMENT

ADVERTISEMENT

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.