cout << "\n\nThe Mean of your Numbers are: " << userNumbers[0] + userNumbers[1] + userNumbers[2] + userNumbers[3] + userNumbers[4] / 5;
I'm trying to calculate the mean of 5 numbers, but what the program does is a+b+c+d+e/f. Which is wrong, and it should go a+b+c+d+e=f and then f/g - like we all learned in school.
I've tried different ways but I always ending up getting numbers like "19247987264" ridiculously long numbers.
Here's the rest of the program: