1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#include <iostream>
using namespace std;
int main()
{
int testScore1, testScore2, testScore3, testScore4, testScore5,
testScore6, testScore7, testScore8, testScore9, testScore10;
int ScoreArray[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
cout << "Enter a test score! (1/10)" << endl;
cin >> testScore1;
cout << "Enter a test score! (2/10)" << endl;
cin >> testScore2;
cout << "Enter a test score! (3/10)" << endl;
cin >> testScore3;
cout << "Enter a test score! (4/10)" << endl;
cin >> testScore4;
cout << "Enter a test score! (5/10)" << endl;
cin >> testScore5;
cout << "Enter a test score! (6/10)" << endl;
cin >> testScore6;
cout << "Enter a test score! (7/10)" << endl;
cin >> testScore7;
cout << "Enter a test score! (8/10)" << endl;
cin >> testScore8;
cout << "Enter a test score! (9/10)" << endl;
cin >> testScore9;
cout << "Enter a test score! (10/10)" << endl;
cin >> testScore10;
cout << ScoreArray[10];
}
|