What is the code to vind squre of a number | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the code to vind squre of a number

4th Mar 2017, 4:34 PM
Shekhar Rajbhar
Shekhar Rajbhar - avatar
2 Answers
+ 7
import java.lang.Math; Method Math.sqrt() returns a double.
4th Mar 2017, 5:09 PM
Tashi N
Tashi N - avatar
+ 1
square = number * number
4th Mar 2017, 4:45 PM
alf
alf - avatar