Multi dimensional array.

Can you help me to start this dimensional array.
The output will be:
N N² N³ N4
1 1 1 1
2 4 8 16

The first numer in column one will multiply itself and the answer is in the column 2. Then the first number in column one multiply like this; 2 x 4 = 8, 2 x 8 = 16.

Can anyone help me to finish this?
one can't finish something that is not started, unless that thing is already finished then there is no point trying to finish what has been finished. You catch my drift?
Here's a rough outline to do this:

1
2
3
4
5
6
7
8
int ar[rows][columns]; //declare the 2D array
for(*count through the rows*)
{
   for(*count through the columns*)
   {
      *fill the array one cell at a time, you should have two variables to multiply together*
   }
}
Topic archived. No new replies allowed.