Math log2 java - class TestJava { public static void main(String[] args) { int x = 20 int logBase2 = (int) (Math.log(x) / Math.log(2))
確定! 回上一頁