Question: Write function definitions for finding the area and circumference of a circle. ANSWER IN C LANGUAGE ! The main program with function calls and a

Write function definitions for finding the area and circumference of a circle. ANSWER IN C LANGUAGE ! The main program with function calls and a sample scenario is given below.

* Function areaCircle takes one input (radius of the circle), calculates area and returns it to main.

* Function circCircle takes one input (radius of the circle), calculates circumference and returns it to main.

* Function printResults that takes two inputs (area and circumference) that prints the results as shown in the sample scenario.

Main program: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #include int main() { float PI = 3.14159; float radius; float circumf, area; printf("Enter the radius of a cirle in cms: "); scanf("%f", &radius); area = areaCircle (radius); circumf = circCircle (radius); printResults (area, circumf); return 0; } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ====================== Sample Input / Output: ====================== Enter the radius of a circle in cms: 3

Area of the circle is 28.27 sq cms Circumference of the circle is 18.85 cms

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!