I have to create a code that uses functions and arrays to find mean and variance of N entered integers. My teacher has been gone for a while, so I'm quite lost with this subject. Help would be greatly appreciated!
You either missed the closing tag or the dashed line is a problem.
You should decide if this is a C program or a C++ program. The C code at the beginning of main does not work well. I had a problem with it entering the proper numbers into the array. When I changed it to C++ code it worked fine.
Not sure yet if it works right yet. Need to find a way to check the variance. For now entering the numbers 1 - 6 produced the mean of 3.5, which I now is correct, and a variance of 3.2, have to check on that number.
Otherwise the program as a whole compiled and ran with no problems or errors.