Calculate square root: how to use sqrt : Square Root « Math « C / ANSI-C






Calculate square root: how to use sqrt



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

int main ()
{
  double param, result;

  param = 1024.0;

  result = sqrt (param);

  printf ("sqrt(%lf) = %lf\n", param, result );

  return 0;
}



           
       








Related examples in the same category

1.Get the square root