sqrt : sqrt « math.h « C Tutorial






ItemValue
Header filemath.h
Declarationfloat sqrtf(float num);
double sqrt(double num);
long double sqrtl(long double num);
Returnreturns the square root of num.


#include <math.h>
  #include <stdio.h>

  int main(void)
  {
     printf("%f", sqrt(16.0));
  }
4.000000








19.66.sqrt
19.66.1.sqrt