Posted by Micheal on Thursday, April 29, 2010 at 11:50pm.
A box of asterisks is displayed line by line.
Try to draw a box of asterisks by hand to determine how you construct each line, i.e. how many asterisks followed by how many spaces, etc.
Each line drawn correspond to a cout command. Now study the C++ language to see how asterisks can be displayed using the cout command, and construct each command individually.
If you find duplications in the cout commands, you will have the opportunity to simplify your programme by looping structures (for, do...).
Try to write the program and if it does not compile, or if it does not give what you want, post your programme for further help.
Related Questions
Computer - Write the program that will calculate and display the career ...
programming - I am supposed to modify this program so it begins by asking the ...
Computer Information - A __________ provides the tools that a programmer uses to...
computer science - in one the chapter 3 programming challenges you were asked to...
computer programming - Write a program that simulates the dial of a phone number...
programming - How to write a program to create a class roster using an array? ...
computer science - c++ program question write a program that uses a loop to ...
programming - java, write a program that prints out the letter X composed of ...
C++ Programming - I NEED HELP WITH MY CODE!!! it won't compile right The ...
programming - write a program that maintains two parallel arrays. after th ...
For Further Reading