C examples for Function:Math Function
Use sqrt function
#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); }