So, I got the pattern right, but I was wondering if anybody else had a different approach to print out the same pattern using 2 nested for loops.
When I try to include spaces in the inner loop to space the numbers it doesn't look the same. Any help?
Pattern III
---------1
-------2 1
-----3 2 1
---4 3 2 1
My code was: