Question: C Programming #include Write a program that asks the user for a positive integer no greater than 15 and a character for display. The program
C Programming #include
Write a program that asks the user for a positive integer no greater than 15 and a character for display. The program should then display a square on the screen using the character entered. The positive integer the user entered will be the length of each side of the square.
Example of output:
Welcome to my display of squares!
Please enter a positive integer: 6
Please enter a character: X
XXXXXX
XXXXXX
XXXXXX
XXXXXX
XXXXXX
XXXXXX
Welcome to my display of squares!
Please enter a positive integer: 12
Please enter a character: %
%%%%%%%%%%%%
%%%%%%%%%%%%
%%%%%%%%%%%%
%%%%%%%%%%%%
%%%%%%%%%%%%
%%%%%%%%%%%%
%%%%%%%%%%%%
%%%%%%%%%%%%
%%%%%%%%%%%%
%%%%%%%%%%%%
%%%%%%%%%%%%
%%%%%%%%%%%%
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
