why won't this work

This is a discussion on why won't this work within the C++ Programming forums, part of the General Programming Boards category; Code:
# include <iostream>
# include <cmath>
using namespace std;
int average, sd, s1, s2, s3, s4, deviation;
int main()
...

You are outputting the values before you are computing them for one. Second, you probably want to use doubles for the average and standard deviation (if not all the inputs as well) so they can have decimals.

what i mean is that i would like the user to be able to repeat the program. i would like the user to be able to input different scores each time. This would happen over and over again until the user wanted to stop. For instance,

average
mean

"would you like to run the program again? y or n"

then they would hit "y" as long as they wanted to use the program. when they want to quit, they would hit "n"