Swift Program to Find the Euler’s Number Raised to a Given Exponent

Swift program to find the Euler’s number raised to a given exponent

// Swift program to find the Euler's number raised 
// to a given exponent

import Swift
import Foundation

var num:Double =  5.0
var res:Double =  0.0

res = exp(num)

print("Result: ",res)

Output

Result:  148.4131591025766

...Program finished with exit code 0
Press ENTER to exit console.

Ranjith

Hi, I'm Manoj a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply