Question: Program using C. Write a program circle.c that calculates the area and circumference of a circle. The program should include the following function. Do not

Program using C.

Write a program circle.c that calculates the area and circumference of a circle. The program should include the following function. Do not modify the function prototype.

void area_circum(double radius, double *area, double *circum);

The function takes a parameter of double type for the radius of the circle. The area parameter points to a variable in which the function will store the area of the circle. The circum parameter points to a variable in which the function will store the circumference of the circle. The main function should ask the user to enter the radius of the circle and call the area_circum function to calculate the area and circumference. The main function should contain the printf statements that display the result with three decimal digits.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!