How to calculate power in C -
how calculate power in c, , have include anything? have tried include math.h, didn't work. de difference between int , double in case.
welcome so! calculate power in c, best way use function pow()
. takes 2 double
arguments: first number raised power, , second argument power amount itself.
so: double z = pow(double x, double y);
then result saved double z. have use math.h
library in order use function.
Comments
Post a Comment