Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren+ 1
how to compute squrare root of a. number using function
Use sqrt() function from math library
2 Antworten
+ 3
In JavaScript you can get the square root of a number using the Math.sqrt( ... ) method
+ 2
Java:
double root = Math.sqrt(yourNumber);