a place where all ur worries are gone and scream all crap u wan while learning something new every day! c language to calculus, welcome to MY HOLY WORLD! :-)

Monday, March 30, 2009

welcome
now lets expand ur c programming with a more powerful function
the sqrt function
lets say u wan to square 9
or any number u choose

#include
#include
int main()
{
double x = 9;
double result = sqrt(x);
printf("The square root of %.2lf is %.2lf\n", x, result);
getchar();
return (0);
}

remember to include the math.h file as u are using the sqrt function
please leave comments
csya rhe mind of the future!!

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home