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
What is a loop? What are different types of loops in c++?
How many lines of code you have written for a single program?
What is the best way to declare and define global variables?
What is the outcome of cout< a) 16 b) 17 c) 16.5
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
the maximum length of a character constant can be a) 2 b) 1 c) 8
Can we use clrscr in c++?
What does '\r' and '\b' mean? Please explain with example.
What is the precedence when there is a global variable and a local variable in the program with the same name?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
Why would you make a destructor virtual?
What does it mean to declare a destructor as static?