/*Given an array arr[] of n integers, construct a Product Array prod[] (of same size) such that prod[i] is equal to the product of all the elements of arr[] except arr[i].

My code is printing garbage value.Pls someone suggest me what is wrong and how can I correct it..Thank you */

include<stdio.h>

main()
{
int i,j,a;
int sum=1;
int vari=1;
int array[5]={1,2,3,4,5};
int temp[4];
while(a<=4)
{
printf("sum");
for(i=0;i<=4;i++)
{
if(i==a)
i++;
else
sum=sum*array[i];
}
temp[j]=sum;
j++;
a++;
sum=vari;
}
for(j=0;j<=4;j++)
printf("%d\n",temp[j]);
}

Hello there guys! I must implement a linked list in assembly (using MIPS). We're supposed to dynamically allocate memory for the nodes. This is what I am asked to do: ...

Hello,
I'm new in java programming, i have insert amounts in database in this Format exp : 1.100.200,00 but the subtraction of this amount give false result .
here is ...