+ 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.
1 RĂ©ponse
+ 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