#include <stdio.h> float square (float); int main() { float a, b; printf("enter any number"); scanf("%f",&a); b=square(a); printf("square of %f is %f\n", a, b); return 0; } float square (float x) { float y; y=x*x; return (y); }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more