Im trying to come up with a simple set of nested for loops to print the following.
123456789
2345678
34567
456
5
This isn't an assignment or anything, im just having fun with loops!
This is how im thinking..
3 for loops
loop 1) controls the beginning
loop 2) controls the ending
loop 3) controls the middle
im having a hard time wrapping my brain around the concept of 3 nest for loops though... 2 is easy!
any suggestions? i dont necessarily want the hard code on here, i just need some help with the strategy
123456789
2345678
34567
456
5
This isn't an assignment or anything, im just having fun with loops!
This is how im thinking..
3 for loops
loop 1) controls the beginning
loop 2) controls the ending
loop 3) controls the middle
im having a hard time wrapping my brain around the concept of 3 nest for loops though... 2 is easy!
any suggestions? i dont necessarily want the hard code on here, i just need some help with the strategy