Hallar la media mediana moda para n datos

`float mean(int *numbers, int n){ int sum = 0; for (int i = 0; i < n; i++) { sum += numbers[i]; } return sum / n; } float median(int *numbers, int n){ if (n % 2 != 0){ return numbers[n/2]; } else { int left = numbers[n/2 -1]; int right = numbers[n/2]; return (left + right) / 2; } } int mode(int *numbers, int n){ int max = 0; int max_index = 0; int counter = 0; for (int i = 0; i < n; i++) { counter = 0; for (int j = 0; j < n; j++) { if (numbers[i] == numbers[j]) { counter += 1; } } if (counter > max) { max = counter`