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

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -