how to compute squrare root of a. number using function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to compute squrare root of a. number using function

Use sqrt() function from math library

19th Mar 2019, 5:06 PM
Muhammed Musthafa
Muhammed Musthafa - avatar
2 Answers
+ 3
In JavaScript you can get the square root of a number using the Math.sqrt( ... ) method
19th Mar 2019, 5:19 PM
VEDANG
VEDANG - avatar
+ 2
Java: double root = Math.sqrt(yourNumber);
19th Mar 2019, 8:07 PM
Denise Roßberg
Denise Roßberg - avatar