So the value in the middle of each line will be 2^(n-1)? What is the maximum you accept for the value of n? Because the n will be used to determine the height of the pyramid. Also, the value in the middle could have different length. How would you deal with 1 digit, 2 digits, 3 digits, 4 digits, etc in the same column?

hi morderators can delete this thread please!!
and any one from cos102 DONT COPY THIS ull get busted so will I
and I completed this problem btw................