Question: In Matlab please!! Write a program based on the following instructions: - Ask the user to enter a number. - If the user enters an
Write a program based on the following instructions: - Ask the user to enter a number. - If the user enters an odd number, the program prints "You entered an odd number". - If the user enters an even number, the program prints "You entered an even number". - The program should keep on doing the above three steps until the user enters a zero. Also, the program should not do more than 20 iterations. Hint: You will need to make use of the while loop, the if statement and the break statement in your program to implement it correctly
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
