#include #include #include /** * root N - compute the square root of N. */ int main (int argc, char *argv[]) { double d; // Check the number of parameters if (argc != 2) { printf ("Usage: sqrt NUM\n"); return EXIT_FAILURE; } // Parse the parameter d = atof (argv[1]); // And print out the result printf ("sqrt(%lf) = %lf\n", d, sqrt(d)); return EXIT_SUCCESS; } // main