I would start writing all
'A'
s using two
for
loops. That should be trivial.
Then, based on the indices of the loops (say
row
,
column
) find the right
if
statement for printing either
'A'
or
'B'
.
[update]
See, for instance,
C - if...else statement[
^]. However I suggest you reading a good book on the
C
programming language.
[/update]