write a C++ program to draw a 20 by 20 square using plus signs. Change your program to get the size from the user, and draw an outline of a square. Using basic C++, int, char, if-else statement, while-loops.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 12SA
icon
Related questions
icon
Concept explainers
Question
100%

write a C++ program to draw a 20 by 20 square using plus signs.

Change your program to get the size from the user, and draw an outline of a square.

Using basic C++, int, char, if-else statement, while-loops. PLEASE!

 

 

 

Write a program to output 2000 plus signs and the prove to yourself that the
output is not 2001 or 1999
Write a program to draw a 20 by 20 square using plus signs
++++++++++
++++++++++
++++++++++
++++++++++
++++++++++
++++++++++
Change your program to get the size from the user. And to draw an outline of a
square:
++
+
+
+
+
++++
+++
+
+
+
+
-++
Transcribed Image Text:Write a program to output 2000 plus signs and the prove to yourself that the output is not 2001 or 1999 Write a program to draw a 20 by 20 square using plus signs ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ Change your program to get the size from the user. And to draw an outline of a square: ++ + + + + ++++ +++ + + + + -++
Expert Solution
steps

Step by step

Solved in 7 steps with 4 images

Blurred answer
Knowledge Booster
Operators
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage