Math.pow()

SJW·2023년 1월 22일

Math.pow(a,b)

  • a를 b만큼 제곱한다.
  • ex)Math.pow(3,2) --->9
  • double형 타입으로 반환한다.
  • a는 int타입이 들어올수 있다.!

0개의 댓글