12345678910111213141516171819202122
#include<stdio.h> #include<conio.h> float square(float); void main() { clrscr(); float a,b; printf("ENter a Number"); scanf("%f",&a); printf("Number=%f",a); b=square(a); printf("\nSquare of %f is %f",a,b); getch(); } float square(float x) { float y; y=x*x; return(y); }