Hi, I'm a beginner. Can anyone help me to solve this problem? Thanks!
program reads an
integer value n and a character symbol. The program forms the letter Z by printing n input
character symbols on the upper line, n input character symbols on the lower line, and n input
character symbols on the diagonal line. If the value of n is less than or equal to 2, the program
prints “Cannot create the mark.”.
The input and printing process must be repeated until the user presses n, for stop.
Sample Input/Output:
Input a number and a symbol: 5 #
#####
#
#
#
#####
Do you want to continue? [y/n] : y
Input a number and a symbol: 12 *
************
*
*
*
*
*
*
*
*
*
*
************
Do you want to continue? [y/n] : n
Goodbye.