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

How would you stop a class from class from being derived or inherited?The constructer should not be Private,as object instantiation should be allowed.

15 Answers   Satyam,


Write a C++ Program to Generate Random Numbers between 0 and 100

1 Answers  


How the keyword struct is different from the keyword class in c++?

0 Answers  


What is new in c++?

0 Answers  


How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?

0 Answers  






How do I download c++?

0 Answers  


What is DlgProc?

0 Answers   C DAC,


What are c++ storage classes?

0 Answers  


Distinguish between new and malloc and delete and free().

0 Answers  


Can comments be nested?

0 Answers  


Can I learn c++ without knowing c?

0 Answers  


why v use c++ even we have microprocessor

2 Answers   CybAge,


Categories