Hello, I tried to make a program that would ask for 3 values (or scores), and then make an average of them,but it wont work and I can't seem to find what is wrong with my code.
Here it is.
//Exercise 3 Chapter 1
//First Try
#include <iostream>
using namespace std;
int main()
{
int scoreOne, scoreTwo, scoreThree
cout << "Hello, welcome to score average maker\n" <<endl;
cout << "Please enter your first score: \n" <<endl;
cin << scoreOne
cout << "Please enter your second score: \n" <<endl;
cin << scoreTwo
cout <<"Please enter your third and last score: \n" <<endl;
cin << scoreThree
//Exercise 3 Chapter 1
//First Try
#include <iostream>
usingnamespace std;
int main()
{
shortint scoreOne, scoreTwo, scoreThree;
cout << "Hello, welcome to score average maker\n";
cout << "Please enter your first score: ";
cin >> scoreOne;
cout << "Please enter your second score: ";
cin >> scoreTwo;
cout <<"Please enter your third and last score: ";
cin >> scoreThree;
int finalScore;
cout <<"Final averaged score is: " << ( scoreOne + scoreTwo + scoreThree ) / 3 <<endl;
cout <<"Press enter key to exit.";
cin.ignore();
cin.get();
return 0;
}