Question: Using while loop and break statement, write a program which keeps prompting the user to enter an integer. If the number that the user enters
Using while loop and break statement, write a program which keeps prompting the user to enter an integer. If the number that the user enters is even, the program responds by printing Right on!, if it is an odd one, it prints out ODD!, if the user inputs the number -1, the program finishes and exits by printing Bye!. In order a finish a program (i.e. function) you may use the return command.
PLEASE I WANT THIS PROGRAM TO BE WRITTEN IN MATLAB SO THAT IT WILL RUN CORRECTLY.
PLEASE I NEED AN ANSWER THAT NO ELSE HAS WRITTEN.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
