0
What should I use to calculate radical?
I tried: a^(1/2) and a^(0.5) but it didn't work
2 Respuestas
+ 2
Use std::pow(a, 0.5). Omit the "std::" if you are "using namespace std". Remember to include <cmath>. If you just want to calculate the square root there is std::sqrt(a), also in cmath.
0
Thanks