answersLogoWhite

0


Best Answer

The following code example will prompt the user to provide the circumference of the circle, then print the diameter, radius, and area.

Code Example:#include #define fPI 3.141593F int main(void) { float fCircumference = 0.0; float fDiameter = 0.0; float fRadius = 0.0; float fArea = 0.0; printf("Enter the circumference of the circle: "); scanf("%f", &fCircumference); fDiameter = fCircumference / fPI; fRadius = fDiameter / 2; /* fCircumference / (fPI * 2) */ fArea = (fRadius * fRadius) * fPI; /* (fRadius 'squared') * fPI */ printf( "The circles diameter is: %f\n" "The circles radius is: %f\n" "The circles area is: %f\n", fDiameter, fRadius, fArea ); return 0; }
User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you find the radius of a circle in C?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Find the dimensions of the rectangle of largest area that can be inscribed in a circle of radius a in C programming?

Find the dimensions of the rectangle of largest area that can be inscribed in a circle of radius a in C programming


Find the circumference of a circle with the radius of 4in?

C = 25.13 inches.


Find the circumference of a circle with a radius of 3.5 inches?

c = 22"


How do you find the circumferences in a circle?

If you are given the radius (r) or diameter (d, which is twice the length of the radius) the equation to find the circumference (C) is: C=d(pi) or C=2r(pi).


How do you figure the circumference of a circle given the radius?

The radius is half of the diameter in a circle. First, you have to find the diameter by multiplying the radius by 2. Then, multiply the diameter by pi. The formula to find the circumference is: C= PI(d).EXAMPLE:radius= 3diameter= 3(2)C= PI(d)C= PI(6)C= 18.84955592...


What is circumfrence and how do you find it?

The circumfrence is like a perimeter. It is the area around a circle. You can find the circumfrence of a circle by using this formula. Pi x R2 or Pi times the radius squared.


3how do you find circumference of a circle with radius?

Circumference = (2) x (pi) x (the radius)Algebra: c=2πr


How to get the radius of a circle?

The radius is the distance from the center to the outside edge of the circle. It is also half of the diameter. How you find it depends on what information you have. c = pi(r^2) so r = sqrt(c/pi)


What is the radius of a circle if given the circumfrence?

The circumference (c) of a circle = 2πr (where r = radius). Therefore if you know the circumference, the radius (r) = c/2π.


Find the circumference of a circle who has a radius of 7.52 inches?

Well given the formula "C = 2 x π x Radius" You just plug the numbers in. C=2xnx7.52 C=2x3.14x7.52 [3.14 representing pie] C=47.2256 Therefore the Circumfrence of the circle that has a radius of 7.52" is 47.2256". :)


If the circumference of a circle is 2053 feet what is the radius of the circle?

Given the circumference of a circle the radius is: r = C / 2xPI So the radius of your circle is 326.7451 ft


What happens to the circumference of a circle when the radius is doubled?

The circumfrence would double Example : C of 5 cm radius circle = 3.14 *2*5 C=3.14 C of 10cm radius circle = 3.14*2*10 C =62.8