Output Questions for Class 10 ICSE Computer Applications
Predict the output of the following Java program snippet:
System.out.println(Math.sqrt(Math.min(42.5,42.25)));
Java
Java Math Lib Methods
26 Likes
Answer
6.5
Working
Math.min(42.5,42.25) gives 42.25. Math.sqrt(42.25) gives output as 6.5.
Answered By
12 Likes