Question: #include #include using namespace std; int main ( ) { vector averageScores; int numIn; unsigned int i; int score; cin > > numIn; for (
#include
#include
using namespace std;
int main
vector averageScores;
int numIn;
unsigned int i;
int score;
cin numIn;
for i ; i numIn; i
cin score;
averageScores.pushbackscore;
for int i ; i numIn ; i
cout averageScoresi;
if i numIn
cout ;
cout endl;
cout endl;
return ;
Im having trouble with eliminating the white space at the end of the output when the code finishes. The code im using is attached
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
