help with function void stat(int [a], int n)

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);


}


Summary

Number of data : 450

Maximum : 100

Minimum : 0

Average : 52.16

Variance : 887.99

Standard Deviation : 29.80

Last edited on
Topic archived. No new replies allowed.