Question: write a program - C A-2) Write a program that reads the side length (elia Jab)of a cube. Then, the program asks the user to
A-2) Write a program that reads the side length (elia Jab)of a cube. Then, the program asks the user to input a number. If the user inputs the program calculates and prints the surface area of the cube. If the user inputs 2, the program calculates and prints the volume of the cube, The following are the required equations, where a is the side length: Surface Area = 6 a? Volume = a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
