Question: how to write in Dev C++ Write a C++ program that uses nested for-loops to display a shape of stars and hashes (see examples). The
Write a C++ program that uses nested for-loops to display a shape of stars and hashes (see examples). The program should ask the user to enter an integer n representing the number of rows/columns in a square. The number n should be positive and not larger than 10. If the user input for n is invalid, then display an appropriate message and exit the program. The program should display a square of size n filled with different characters. The first row should be filled with the character @. Then each even column should be filled with the character * and odd columns filled with the character #. Examples n=4 n=7 n=11 Incorrect Number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
