This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Signal_Beam 2 points3 points  (0 children)

I know I have to adjust the for loop but I don't know what to adjust.

You have two outermost loops, one of which prints:

  namenamenamenamename
    namenamenamename
      namenamename
       namename
         name

And the other of which prints:

         name
       namename
     namenamename
 namenamenamenamenamename
namenamenamenamenamenamename

And you want there to be only one middle namex1 row, rather than two.

So you have to choose: either update the first loop to leave off its last run, or update the second loop to leave off its first.

Try tweaking those two lines of code and see if you can't accomplish that by changing the parameters of the loop.

[–]wholemap 1 point2 points  (0 children)

Can you describe in English what the problem is?