Get the radius of the circle from the user and return it to


Using C visual express write a function that:

// gets an integer from the user and returns it
// make 3 calls to this function:
// 1.. To get the radius of the circle from the user and return it to main
// 2.. To get the length of the rectangle from the user and return it to main
// 3.. To get the width of the rectangle from the user and return it to main
(Hint: you can prompt from the main function BEFORE you call your function. You do NOT need to prompt from inside this function)
int GetInt(void);

// takes one arguments, the length of the square returns the area
int CalculateAreaRec(int length, int width);

// takes one argument, the radius of the circle and returns the area
double CalculateAreaCir(int radius);

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Get the radius of the circle from the user and return it to
Reference No:- TGS01248196

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)