Question: Write a script that will create and display a cell array that will loop to store strings of lengths 1, 2, 3, and 4. The
Write a script that will create and display a cell array that will loop to store strings of lengths 1, 2, 3, and 4. The script will prompt the user for the strings. It will errorcheck and print an error message and repeat the prompt if the user enters a string with an incorrect length.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
