Question: Write in C code: Develop a structured C program to calculate the surface area and volume of a cube. Your program must be structured as
Write in C code:
Develop a structured C program to calculate the surface area and volume of a cube. Your program must be structured as follows: main program and two functions.
Main program inputs the side length of a cube, calls the function and output results if the side>=7;but print on screen error message "the input side is less than 7!" if the side <7.
One function (name it cube_area) takes data from the main program, calculates and returns the surface area.
The other function (name it cube_volume) takes data from the main program, calculates and returns the volume.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
