Study example...

Its been suggested a question similar to this will be on an exam but I have NO idea how I would make it...

We are supposed to take in three inputs; two numbers and one letter.

Then the program is supposed to display the letter in rows and columns.

Ex.

rows: 2
columns: 4
letter: x

outputs:
xxxx
xxxx

...Seems simple but I all I can figure is that it should use two for loops (I don't know what expressions though) and I think two arrays? Please help.
you only need 2 for loops and the row and column inputs are the limiters for the loops.

something like for (int i = 0; i < row; i++) { ... for (...) };
Topic archived. No new replies allowed.