im trying to get this output using the function void stat(int [a], int n).
i have already made functions for maximum, minimum, average, variance. I was trying to call those functions into this new void stat function but not sure how to proceed. Any help would be appreciated it as im very new to c++.
this is how what i want to do but im certain this is wrong.
void stat(int [a], int n)
{
printf ("%*d \n", 5, "Summary"");
printf("Number of data: %*d \n", 5, n);