Question: PROBLEM 3 . Modify the MATLAB program of the Tutorial # 1 so that the code also identifies odd integers. You should use an
PROBLEM
Modify the MATLAB program of the Tutorial # so that the code also identifies odd integers. You should use an IFELSE statement. At the beginning of the code, ask the user to input a random integer. The program should identify if the number is even or odd, and display an appropriate message in the Command Window.
checkmark The Command Window Output should look like:
Enter an integer
is EVEN
Enter an integer
is ODD
Attach a copy your MATLAB script and Command Window output.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
