+ 2

Which one is correct? Help me

Which of the following statement is TRUE to compute the square root of number and assign it to a variable named pk? Answer   A. pk = sqrt(number);    B.number = sqrt (pk);    C.pk = Math.sqrt(number);   D. number = Math.sqrt(pk);

23rd May 2021, 2:37 AM
Izzat Idham
Izzat Idham - avatar
2 Answers
+ 2
C
23rd May 2021, 5:42 AM
Akshay Harshora
Akshay Harshora - avatar
+ 1
C. Additional info: Math.sqrt() will return a double
23rd May 2021, 8:17 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar