Question: Write a MATLAB script that asks for radius r and height h of a cylinder (in m) to be entered from the screen Prints: a)
Write a MATLAB script that asks for radius r and height h of a cylinder (in m) to be entered from the screen
Prints:
a) A warning if either of the entered numbers is negative or zero
b) Cylinder is tall if both numbers are positive, and h is larger or equal to 2r
c) Cylinder is short if both numbers are positive and h is smaller or equal to 0.5r
d) Perfect cylinder if both numbers are psgotve, and h is between 0.5r and 2r
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
