Write a program using parameterized function with return type to find the area of a circle whose radius is 5 unit.
Answers
Answered by
1
Answer:
#include<stdio.h>
#include<conio.h>
#define pi 3.1416
float area(float redi)
{
area=2*pi*redi;
return area;
}
int main()
{
float redius,Area;
printf("Enter the radius of circle:");
scanf("%f",&redius);
Area=area(redius);
printf("%f",Area);
getch();
return (0);
}
Similar questions
Science,
3 months ago
Social Sciences,
3 months ago
Math,
3 months ago
English,
6 months ago
English,
6 months ago
Chemistry,
10 months ago
Accountancy,
10 months ago