Hi, I’m very new to C. I have a small program that shows subtotal and total of user input numbers. The total is working but the subtotals after each input return the number 0. Can somebody point out what am I doing wrong here?

Thank you in advance,

```
#include <stdio.h>
#include <math.h>
int main()
{
int j, numbers[5], total=0, result=0;
printf("This program adds up 5 numbers from the user.\n");
printf("Subtotal will be shown until the final result is reached.\n");
for(j = 0; j <4; j++) {
result += numbers[j];
}
printf("Provide number 1/5\n");
scanf("%d", &numbers[0]);
printf("Your first number is %d", result);
printf("\nProvide number 2/5\n");
scanf("%d", &numbers[1]);
printf("Subtotal is %d", result);
printf("\nProvide number 3/5\n");
scanf("%d", &numbers[2]);
printf("Subtotal is %d", result);
printf("\nProvide number 4/5\n");
scanf("%d", &numbers[3]);
printf("Subtotal is %d", result);
printf("\nProvide the final number\n");
scanf("%d", &numbers[4]);
for(j = 0; j <5; j++) {
total += numbers[j];
}
printf("The final sum is %d", total);
return 0;
}
```