Created
December 6, 2019 03:12
-
-
Save ksy90101/1a3de043018c1d76671eb0c38fc224f2 to your computer and use it in GitHub Desktop.
[프로그래머스] 자바 중급 - Part2. java.lang패키지 - Math 실습
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
public class MathExam{ | |
public static void main(String[] args){ | |
System.out.println("2의 10승 = " + Math.pow(2, 10)); | |
System.out.println("16의 1/2승 = : " + Math.pow(16, 0.5)); | |
System.out.println("log200 = " + Math.log10(200)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment