/* *********************************** This is the function square() with a driver routine to test it. G.C. Rutledge October 2002 ********************************* */ #include double square(double); int main(void) { double z; printf("input a value of z to test:\n"); scanf("%lf",&z); printf("the value of z^2 is %f\n",square(z)); return (0); } /* ********************************** this is the function square() It returns the value of a*a G.C. Rutledge October 2002 ********************************** */ double square(double a) { return a*a; }