Avatar of Robby Danneels
Robby Danneels

asked on 

Loop in the CL from tn5250j AS400

Hi Guys,
I have a problem how to make a sqaure and triangle with a for loop.
when i say it have to need 6 lines then the square has the look like this
000000
0 .......0  
0........0
0........0
0........0
000000

for a triangle it has the look like this

..........0.........
........000......
......00000...
....0000000.
.000000000
0000000000
something like that and dont know how to start
hopefully you guys can help

cheers Robby and sorry for my bad englisch
Programming

Avatar of undefined
Last Comment
Gary Patterson, CISSP

8/22/2022 - Mon