Hello, for some reason, I am getting a very weird negative nuber as my average for my program, here is my code:
int sum, avg;
sum = 0;
avg = 0;
for(int i = 1; i < size; i++){
sum += array[i];
}
avg = sum / size;
my output is :-6.84941e+061