JAVA

Math.pow()

wow 2021. 1. 25. 21:22

Math.pow(a,b)는 a의 b제곱승을 계산해준다.

Math.pow(num[i], 2);

 

 

활용 문제. BOJ 2475