+ 1

Tell me how this will work " Math.pow(10,2)=??

li want to know how it will print (10,1)=1,(10,2)=11, (10,3)=111 and so on.

2nd Mar 2019, 3:55 AM
ALI AHMED
ALI AHMED - avatar
1 Odpowiedź
+ 13
In java method pow of Math class provid a funtionality to increase a power of given value. For Example : Math.pow(11,2) =121 first parameter for number and second for power Note : this value return double value if you want int value so be sure typcat this useing (int) If you have to make yourself or method than it is to simple try to use your logic Hint : use loop
2nd Mar 2019, 4:14 AM
Sumit Programmer😎😎
Sumit Programmer😎😎 - avatar