Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to express many parties in C language?
How to express many parties in C language?
The function of power in C language is pow ().

Header file: # include

Function prototype: double pow (double x, double y); ?

Function description: pow () function? Returns the value of x to the y power. The function returns the y power of x.

Example:

# Contains? & ltstdio.h & gt

# Contains? & ltmath.h & gt

Invalid? Master ()

{

Double? pw;

int? a=2? ;

pw=pow(a, 10); ? //a power of 10

“,,printf("%d^ 10=%g\n? a,pw? );

} correlation function:

Floating point powf (floating point x, floating point y); //Single precision power supply

long double pow(long double x,long double y); //Long double precision power

Double sqrt (double x); ? //Double precision square root

float sqrtf(float x); //Single precision square root

long double sqrtl(long double x); ? //Long double-precision root