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

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

android - MPAndroidChart - How to add Annotations or images to the chart -