Quote:
I understand the concept of how to do it (Just do a regular triangle's code but in reverse) but I'm struggling with the execution.
In second part,
for (i=0; i<length; i++){
you need to reverse the order
for (i=length-1; i>=0; i--){
[Update]
Quote:
It worked but now the middle line happens twice, any way to fix this?
Then remove 1 to first value:
for (i=length-2; i>=0; i--){