hi!..i really need some help..
i need to print a pyramid pattern shown below in c++ language using a nested for loop...
1
1 2 1
1 2 4 2 1
1 2 4 8 4 2 1
1 2 4 8 16 8 4 2 1
1 2 4 8 16 32 16 8 4 2 1
consider that each spaces are separated by tab..
I can only print this with my source code....
1
1 2
1 2 4
1 2 4 8
1 2 4 8 16
1 2 4 8 16 32
i can't figure out the condition on how to print out the remaining numbers shown below..
1
2 1
4 2 1
8 4 2 1
16 8 4 2 1
any help would be very much appreciated...please help me...
thank you for having time reading this post.
note: that is in pyramid pattern, not a right triangle one.