Math, asked by sreejithadi3508, 1 year ago

What prints: system.out.println(math.sqrt(4)); ?

Answers

Answered by TPS
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.
Answered by siddhartharao77
0
Error. 

The question should be System.out.println(Math.sqrt(4)) = 2.0.
Similar questions