# Answer to Question #16903 in Java | JSP | JSF for esraa

Question #16903

e^x in java

Expert's answer

public class main

{

public static void main(String[] args)

{

int

x=2;

double res=Math.pow(Math.E,

x);

System.out.println(res);

}

}

{

public static void main(String[] args)

{

int

x=2;

double res=Math.pow(Math.E,

x);

System.out.println(res);

}

}

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment