“java math square root” Code Answer's ... System.out.println(Math.sqrt(num)); // the sqrt function gives a value in 'double' data type.
確定! 回上一頁