how to compute squrare root of a. number using function | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponses
+ 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