Using c visual express create a function


Discussion:

Q: 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
Visual Basic Programming: Using c visual express create a function
Reference No:- TGS01936058

Now Priced at $25 (50% Discount)

Recommended (96%)

Rated (4.8/5)