The output that I need is this:
----------------------------------------------------
1 2 3 4 5 6
Enter Preferred Number: (any number from 0-9)(ex. 5)
1
1_2
1_2_3
1_2_3_4
1_2_3_4_5
...and so on...
But I had this other output instead:
----------------------------------------------------
1 2 3 4 5 6
Enter Preferred Number: (any number from 0-9)(ex. 5)
5_
4_5_
3_4_5_
2_3_4_5_
1_2_3_4_5_
...and so on...
How can I reverse the numbering and remove the underscore after the side of the pyramid, to match the example above? I don't know what the problem is. Please help me...
By the way, the program that I am using is Turbo C++...even though obsolete, but I still keep using it...XD
Here is the code that I made for the second example: