1234567891011121314151617
float score; float grade[5]; for (int i=0; i<5; i++) { cout << "Enter 5 grade scores: " << endl; cin >> score; score += grade[i]; cout << endl; } for(int i=0; i<5; i++) { cout << "Your grades are " << grade[i] << endl; //confused on this part.. }
12345678910111213141516
float grade[5]; for (int i=0; i<5; i++) { cout << "\nEnter 5 grade scores: " << endl; cin >> grade[i]; } cout << "Your grades are " ; for(int i=0; i<5; i++) { cout << grade[i] << ' '; //confused on this part.. } cout << '\n' ;
cin>>grade[i];