Reads in the size of a square from the screen;
2. Prints a hollow square of that size out of “-“, “|” and
blanks on screen;
3. Prints the same hollow square onto a text file.
Your program should work for squares of all side sizes
between 1 and 20.

---
│ │
│ │
│ │
---


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Is c++ still being used?

0 Answers  


What is code reusability in c++?

0 Answers  


What is the use of cmath in c++?

0 Answers  


What is dangling pointers?and what is memory leak?

5 Answers  


What is the difference between global int and static int declaration?

0 Answers  






Is java made in c++?

0 Answers  


What is the handle class?

1 Answers  


What is a manipulator in c++?

0 Answers  


What is vector string in c++?

0 Answers  


What are the advantages of c++ over c?

0 Answers  


why the size of an empty class is 1

4 Answers  


Can we use resume in error handling i.e. in the catch block

5 Answers   Infosys,


Categories