Patrick B. answered 04/17/20
Math and computer tutor/teacher
using namespace std;
#include <iostream>
int main() {
const int SCORES_SIZE = 4;
int lowerScores[4];
for (int i = 0; i < SCORES_SIZE; i++)
{
cout << "Please input the score :>";
cin >> lowerScores[i];
}
for (int i=0; i<SCORES_SIZE; i++)
{
if (lowerScores[i]>0)
{
lowerScores[i]--;
}
else
{
lowerScores[i]=0;
}
}
for (int i = 0; i < SCORES_SIZE; i++)
{
cout << lowerScores[i]<< " ";
}
cout << endl;
return 0;
}