Challenge #6: Pyramid
A classic programming contest challenge. Everyone should try this one.
Create a function that, given an integer, can create a triangle of increasing numbers, like so::
Now, do it right-aligned:
1with the last number being the given integer.
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Now, do it right-aligned:
1For extra credit, do it center aligned.
2 1
3 2 1
4 3 2 1
5 4 3 2 1

http://rhaptos.org/Members/jenn/pychallenges/pychallenge6