# include<stdio.h>
# include<conio.h>
void main()
{
float square();
float a,b;
printf("\nenter any number");
scanf("%f",&a);
b=square(a);
printf("\nSquare of %f is %f",a,b);
}
float square ( float x)
{
float y ;
y=x*x;
return(y);
}
when i run this i get an error ::----
"" type mismatch in redclaration of 'square"" .
this is an texxt boook example .
about function declaration and prototypes
passing float and char values thru functions
so whtz the glitch can ne1 tell me hopw to overcome
this problem ?????????????????????????????????