Computer Science, asked by chaturvediakshat1614, 7 months ago

write a program which accepts radius from the user to calculate the diammeter , circumference and area of the circle​

Answers

Answered by priyapayal0011
3

Answer:

Logic to find diameter, circumference and area of circle

Input radius of circle from user. Store it in a variable say radius . Apply the formulas to calculate diameter, circumference and area. Use diameter = 2 * radius , circumference = 2 * 3.14 * radius and area = 3.14 * radius * radius .

Answered by parveenkumar410
0

Explanation:

h>// is used for constant PI referred as M_PI /* Function declaration */ double getDiameter(double radius).

double getCircumference(double radius).

double getArea(double radius).

int main() { float radius, dia, circ, area.

/* Input radius of circle from user */ printf("Enter radius of circle: ").

scanf("%f", &radius).

follow me I will always help you

Similar questions