Question: The problem must be answered using MATLAB. Thanks. Write a program which will print out 'Hello World' to the user. Then the program will ask

The problem must be answered using MATLAB. Thanks.

The problem must be answered using MATLAB. Thanks. Write a program which

Write a program which will print out 'Hello World' to the user. Then the program will ask if the user wants to see the comment again. If the user types 'y', display the comment. Repeat this comment and question until user types 'n' to the question. (Use while loop) The program should give an error message if the user types anything else, and repeat the question. The output should look like: Hello World You want to see that again? y Hello World You want to see that again? yes Wrong input: Type 'y' for yes and 'n' for no You want to see that again? rtrt Wrong input: Type 'y' for yes and 'n' for no You want to see that again? n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!