Question: using MATLAB >> areaMenu Menu 1. Cylinder 2. Circle 3. Rectangle Please choose one: 2 Enter the radius of the circle: 4.1 The area is
>> areaMenu Menu 1. Cylinder 2. Circle 3. Rectangle Please choose one: 2 Enter the radius of the circle: 4.1 The area is 52.81 >> areaMenu Menu 1. Cylinder 2. Circle 3. Rectangle Please choose one: 3 Enter the length: 4 Enter the width: 6 The area is 24.00 26) Modify the areaMenu script to use a switch statement to decide which area to calculate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
