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
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
Get step-by-step solutions from verified subject matter experts
