answersLogoWhite

0

#include<stdio.h>

main()

{

int radius;

float a1;

float area(int r);

printf("Enter the r value");

scanf("%d",&radius);

a1=area(radius);

printf("The answer=%d",a1);

}

float area(int r)

{

float a2;

a2=3.14*r*r;

return(a2);

}

getch();

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Area of a Circle using Function in C?

To find the area of a circle using the circumference, you need to use the formula Area=Circumference squared divided by four times pi. For this type of equation, pi would be equal to 3.14.


How do you find the area of as circle?

You need to find the radius. Then you calculate using Pi (&pi;) : &pi;*r&sup2; = area of the circle. Also this question was answered many times, use the search function before submitting a question.


How do you find the area of a circle in square inches?

By using the formula: area of circle = pi*radius2


Ar is an area function for a circle Find A3 when Ar 3.14r2?

12.56


Ar is an area function for a circle Find A1 when Ar equals 3.14r2?

3.14


Ar is an area function for a circle Find A2 when Ar equals 3.14r2?

12.56


Find the area of circle?

Area of circle can be computed using formula is A = &pi;r2 , where, A = represented is Area of circle, &pi; = its constant, call it as pie and value is 22/7 i.e 3.142, r = Radius of circle, which has to be squared or doubled to get area of circle.


Is there an association between the radius of a circle and the area of a circle.. please explain?

The radius of a circle and the area of a circle are directly proportionate. This is because the area of a circle is calculated by the formula: Area = pi * radius2. Since we are using the radius to find the area, there is an association between the two.


Find the area of a sector. Do not round?

Because you will be using the number pi to find the area of the circle, some rounding will be required.


How do you find the circumference of a circle when you know the area?

To find the circumference of a circle when you know the area, you first need to find the radius of the circle using the formula for the area (area = πr^2). Once you have the radius, you can calculate the circumference using the formula for the circumference (circumference = 2πr).


How do I figure the area of a circle by diameter?

To find area of a circle using diameter, you use this formuler. Area=pi(diameter/2)(diameter/2)


How do you find the area of a circle inside a square?

all you do is find the area of the circle... if you mean find the squares area, find the area of the circle, and then the square's area and subtract the squares area to the circles area