#include <stdio.h>
main() {
int numbers[3];
int total = 0;
double average;
int i;
for (i = 0; i < 3; i++) {
printf("Please enter a number");
scanf("%d", &numbers[i]);
total += numbers[i];
}
/* sizeof returns the number of bytes in a variable, with this we can get the amount of elements */
average = total / (sizeof(numbers) / sizeof(numbers[0]));
printf("The total is %d. The average is %f.", total, average);
}