If tried to write the following code (don´t ask why):
I have an array of say 10 numbers.
I tried to multiply the numbers like this:
Code: Select all
erg(0) = array(0) * array(0)
erg(1) = array(0) * array(1)
erg(2) = array(0) * array(2)
....
erg(?) = array(1) * array(0)
erg(?) = array(1) * array(1)
Later, I have to do that with the same array much more. Each element of an array should be multiplied with each element of this array 10 times, hard to explain, should look like this:
Code: Select all
erg(0) = array(0) * array(0) * array(0) * ... * array(0)
erg(1) = array(0) * array(0) * array(0) * ... * array(1)
...
...
erg(?) = array(9) * array(9) * ... * array(8)
erg(?) = array(9) * array(9) * ... * array(9)
Code: Select all
for a=0 to last
  for b=0 to last
    for c=0 to last 
...
Does someone know any way to solve this problem?










 
  ).
 ).