Please, do not delete your posts, it is rude for everyone who helps you and makes it impossible for users having similar problem to find solution themself.
Original post:
krammer1280 wrote:
Hi there.
Could anyone give me a hand to figure out how to do this:
Use a nested while loop to draw the following pattern in row-major sequence and write it to an output file:
XOOOO
OXOOO
OOXOO
OOOXO
OOOOX
I really did my best to figure it out, but couldn't do it.
What I have so far:
#include <iostream>
using namespace std;
int main()
{
int row, col; //row index and column index
}