Question: Problem 4 (10 points) Write a complete C++ program that asks the user to enter a positive integer n. If n is made of #'s
Problem 4 (10 points) Write a complete C++ program that asks the user to enter a positive integer n. If n is made of #'s in the left column and bottom row, then a slightly smaller L made made of o's inside it, then a smaller For example, here is a sample run of the program not positive the program should print a message Not positive. Enter another: and continue to do this until the user enters a positive integer. Then the program should print a square of side n that is made up from a large letter L L made of #'s and so on. (Partial credit will be given for the parts of the program that you complete successfully. Excessively long solutions lines might lose some credit. Enter a positive integer n: -5 Not positive. Enter another: 7 #0#0#0# #0#0#00 #0#0### #0#0000 9 Answer: //do this after the lecture on nested for loops
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
