The code would be something like this I suppose:

Code:

int main()
{
int arr[n],OutVar[n2];
int counter1,counter2,result;
result=1;
for(counter1=0; counter1<n2; counter1++)
{
for(counter2=0; counter2<n; counter2++)
{
if counter2=counter1 continue;
result=result*arr[counter2];
}
OutVar[counter1]=result;
result=1;
}
}