What prints: system.out.println(math.sqrt(4)); ?
Answers
Answered by
1
The command is to print the square root of 4.
Square root of 4 can be 2 and -2.
I am not very sure if it will print both the answers. it is very likely to print 2.
Square root of 4 can be 2 and -2.
I am not very sure if it will print both the answers. it is very likely to print 2.
Answered by
0
Error.
The question should be System.out.println(Math.sqrt(4)) = 2.0.
The question should be System.out.println(Math.sqrt(4)) = 2.0.
Similar questions