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 - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -