Question: Complete the following program which calculates and displays the area and perimeter of a circle Hint: area of circle = circumference of circle = 2r

 Complete the following program which calculates and displays the area and

Complete the following program which calculates and displays the area and perimeter of a circle Hint: area of circle = circumference of circle = 2r /*Program to find the circumference and area of a circle #include-stdio.h> #define PI 3.142 void main float circum, area; float radius; void circumarea(float, float *, float*); printf"nEnter the radius of a circle in metres:In"); //read radius from the keyboard /call circumarea in main() printf("nCircumference of the circle is %f metres", circum); printf(" Area of the circle is %fsq.metres", area); void circumarea (float r, float *ci, float *ar)

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!