I need to create two functions, the first one must sequence a number. Ex n=6, output 123456.Right now my program outputs 654321. Second I need to create a function that prints these numbers in a triangle.
Can you explain why your code produces the numbers in reverse?
With your code, consider using a for loop to count up to n.
For the Triangles, how would you do that on paper? Think about what variables you will need, and how you can repeatedly call your function in a loop. Have a function for each diagram.