Predict the output of the following:
System.out.println(Math.sqrt(10.24));
120 Likes
3.2
Math.sqrt method gives the square root of a positive number. Square root of 10.24 is 3.2 so it is the output.
Answered By
60 Likes
System.out.println(Math.rint(-99.4));
System.out.println(Math.cbrt(42.875));