Question: Using functions, write a C program which does the following; The user enters the height(h) and radius(r) of a cylinder. Then the program calculates

Using functions, write a C program which does the following; The user

 

Using functions, write a C program which does the following; The user enters the height(h) and radius(r) of a cylinder. Then the program calculates the Volume (V), using; V = n. r.h h Furthermore, the program calculates the total surface area by the given formula; S = 2 rh+2.1 where S is the total surface area of the cylinder. The functions in your program may use the following prototypes: For calculating the volume; double cale_vol (double a,double b ); For calculating the total surface area; double calc_tsa( double a, double b);

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 Programming Questions!