I don't understand what I am doing wrong. I'm trying to find the average of three numbers. When I run the program and I enter score 1 there is a 0 in front already, for score 2 a random number shows up 4883904, and for score 3 there is a 0 in front again. I can enter scores, so I entered 100 for all 3 and the avg. shows up correctly, but I don't know where the random number and 0 are coming from.
This line: cout <<"\nEnter score 1 :" <<s1;
is printing "\nEnter score 1 :" on a screen, and after this a value of the s1 variable. You did not assign the value to the s1 yet, that is why it contains something that we call garbage.