Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

cmath sqrt

/* sqrt example */
#include <stdio.h>      /* printf */
#include <math.h>       /* sqrt */

int main ()
{
  double param, result;
  param = 1024.0;
  result = sqrt (param);
  printf ("sqrt(%f) = %f
", param, result );
  return 0;
}
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #cmath #sqrt
ADD COMMENT
Topic
Name
7+7 =