#include #include #include /** * Fun with approximation. */ int main() { double d = 2.0; double root = sqrt(d); double squared = root * root; printf ("The square root of %lf is %lf\n", d, root); printf ("%lf squared is %lf\n", root, squared); if (d == squared) printf ("Yay! The square of the square root of %lf is %lf.\n", d, d); else printf ("Boo! The square of the square root of %lf differs from %lf.\n", d, d); return EXIT_SUCCESS; } // main