How do I power code on android? [closed]

-1

I'll make a calculator that needs boosting, can someone tell me how it's done on android?

    
asked by anonymous 29.03.2017 / 06:14

1 answer

1

You can use the static method pow(dobule val1, double val2) of class Math :

System.out.println(Math.pow(2.0, 3.0)); //2 elevado a 3

Output:

  

8.0

    
29.03.2017 / 13:52