posted 14 years ago
Ok this problem is driving me crazy! I have to get a pyramid that has 8 rows and as the number goes down in each column it multiplies by two. I have a simple program that i made that has the pyramid in 8 rows that has the same numbers in each column. My problem is that i cannot figure out how to change the format of the columns to what i need
The code that i have is:
As you can see the column numbers are all the same. I need them to multiply by two as it goes down. For example, the column with all ones would read from top to bottom 1, 2, 4, 8,16, 32,64,128.
Any help will be much appreciated!