+ 1

help please

Hi, I have a question, what is math.sqrt in with с# and what is it used for? Thanks in advance for the answer.

12th Nov 2017, 4:44 AM
Serhii
Serhii - avatar
3 Answers
+ 5
It is used to return the square root of a number. Eg - Console.Write(math.sqrt(16)); //Prints 4.
12th Nov 2017, 4:46 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 3
Thank you very much for your answer =)
12th Nov 2017, 4:47 AM
Serhii
Serhii - avatar
+ 2
it returns square root of a value.
12th Nov 2017, 4:58 AM
Shubham Gupta
Shubham Gupta - avatar