Computer Science, asked by Prisilla, 7 months ago

Write a program using parameterized function with return type to find the area of a circle whose radius is 5 unit.

Answers

Answered by rahulbiswas1107
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