+ 2

How can i use square root operand

25th Mar 2017, 4:24 AM
Tushar Singh
Tushar Singh - avatar
3 Respuestas
+ 17
Adding to Squidy's answer. E.g. #include <cmath> // codes cout << sqrt(4); // outputs 2
25th Mar 2017, 5:41 AM
Hatsy Rei
Hatsy Rei - avatar
+ 5
There is no square root operator in C++, but you can use the std::sqrt function declared in the cmath header.
25th Mar 2017, 4:27 AM
Squidy
Squidy - avatar
0
hmm thanks
25th Mar 2017, 8:34 AM
Tushar Singh
Tushar Singh - avatar