You need nested
for
loops: an outer one which prints each row running from
0
to the array Length minus one as
y
, and an inner one which runs from
0
to
y
as
x
.
Inside the inner array, print each character with Console.Write using x as an index into the array.
After each time the inner loop finishes, print a new line.
Think about it for a couple of minutes, and you'll get the idea.
If you are having problems getting started at all, then this may help:
How to Write Code to Solve a Problem, A Beginner's Guide[
^]