0
Why it dosn't work
float x,result ; result =x^(0,5) or what should l do to find the result of square root of float x
2 odpowiedzi
+ 6
^ is the bitwise xor operator not a power one.
#include <cmath>
double x = 25.0, result;
result = pow(x, 0.5);
+ 1
thank you 👍