Use sqrt function - C Function

C examples for Function:Math Function

Description

Use sqrt function

Demo Code

#include <stdio.h>
#include <math.h>
#define TOOTH 253//from  w w w .  ja  va  2 s  . co m
int main()
{
   double lights;
   lights=sqrt(256);                    /* square root of 256 */
   printf("Milton, I got your %0.f%c lights.\n",\
   lights,TOOTH);
   return(0);
}

Related Tutorials