Java Math 예시 1(abs, ceil, floor, round, max, min, pow, sqrt, sin, cos, tan)
package lec14.math02; public class Math01 { public static void main(String[] args) { double random = Math.random(); System.out.println(random); System.out.println("======================"); int random1 = (int) Math.random(); System.out.println(random1); System.out.println("======================"); for (int i = 0; i < 10; i++) { int intResult = (int) (Math.random() * 20); System.out.println(i + ..
2022. 11. 14.