i don't know what i'm doing wrong...my goal is to find tha average (mean) of number entered. but i keep getting the wrong answers.
this is what o came up with so far..
for(i=0;i<4;i++)
{
for (j=0;j<4;j++)
{
printf("enter value:");
scanf("%d", &i);
}
printf("\n");
}
total = 0;
for(i=0;i<4;i++)
{
for (j=0;j<4;j++)
{
total=total + i;
}
}
average= total/4;
printf("the average is %d", average);
}