I just started learning C++ through a class in college and we are on loops right now. We started with this simple program.
It simply produces the shape:Code:#include <iostream> using namespace std; int main() { int row, column; int maxRow = 5; int maxCol = 4; for(row = 0;row < maxRow; row++) { for(column = 0; column<maxCol; column++) { cout << "*"; } cout << endl; } return 0; }
****
****
****
****
****
My question is how can I manipulate this program to produce the following shape:
Any suggestions would be MUCH appreciated, thanks again.Code:******** ** ** ** ** ** ** ** ** ********
-aura2


Reply With Quote

\"The Smilie Wars\" ... just arrived after the great crusades
.... computers come to the rescue .... ah technology at last has some use.
Bookmarks