In the program I have created, the strings are of both the same length. I don't know why it showed up as one blank. I am having difficulty understanding this concept. Could someone please show me an example of a while statement that would execute 8 blocks of asterisks and blanks...
I would very much appreciate any input.
User Profile
Collapse
-
How would you change the code so that it prints out 8 blocks of chessboard rows using only while statement?
Please help... I am not quite understanding and I am under deadline.Leave a comment:
-
The lines are supposed to line up > like a chessboard
They line up properly in the program but on this screen... reply thingyLeave a comment:
-
...Code:******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ********Leave a comment:
-
...Code:******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ******** ********Leave a comment:
-
******** ******** ******** ********
******** ******** ******** ********
******** ******** ******** ********
******** ******** ******** ********
******** ******** ******** ********
******** ******** ******** ********
******** ******** ********...Leave a comment:
-
I have modified the code and changed it to this. When we compile the program it outputs two blocks of asterisks. I need it to output six more blocks....Code:count = 1; while (count <=5) { cout << whiteRow << endl; count ++; } innercount = 1; while (innercount <=5) { cout << blackRow << endl; innercount ++; }Leave a comment:
-
Chess Board Program using While statements
Create a chessboard program by using while statements and you can only use TWO cout statments.. (using C++)
One cout is cout<< whiteRow << endl;
THe other cout is cout <<blackRow << endl;
whiteRow = WHITE + BLACK + WHITE + BLACK + WHITE + BLACK + WHITE + BLACK;
blackRow = BLACK + WHITE + BLACK + WHITE + BLACK + WHITE + BLACK + WHITE;
The program has the dimensions...
No activity results to display
Show More
Leave a comment: