Question: Answers from Chegg make MatLab error stating: Not enough input arguments. Error in PrintCircles (line 2) for i=1:n 4) Write a function PrintCircles(n) that has
Answers from Chegg make MatLab error stating:
Not enough input arguments.
Error in PrintCircles (line 2) for i=1:n

4) Write a function PrintCircles(n) that has one integer input argument n. This function prints out n lines of the capital letter 'O', with 1 to n 'Oin each line. Please implement this using for loops. As an example, calling the function below should output something like this: >> PrintCircles (3) O 00 000 You will earn extra 10 points if you print the circles in reverse order and right-aligned as shown below by using while loop: >> PrintCircles (3) 000 00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
