Tuesday, August 20, 2019

find a Square in a function. return type of function

Find a Square in a function. return type of function:

Find a Square in a function. return type of function:


#include<stdio.h>
#include<conio.h>
float funret(float);
void main()
{
float i;
clrscr();
printf("Enter a Any Number:- ");
scanf("%f",&i);
funret(i);
getch();
}
float funret(float x)
{
float y;
y=x*x;
printf("The Square is:- %f",y);
return(y);
}

Output:




EmoticonEmoticon