Computer Applications
Predict the output of the following:
System.out.println(Math.sqrt(10.24));
Java
Java Math Lib Methods
ICSE
77 Likes
Answer
3.2
Working
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
42 Likes
Related Questions
Predict the output of the following:
System.out.println(Math.cbrt(42.875));
Predict the output of the following:
System.out.println(Math.min(-25.5, -12.5));
Predict the output of the following:
System.out.println(Math.ceil(-0.95));
Predict the output of the following:
System.out.println(Math.rint(-99.4));