0

I have created a function to determine the lowest out of 5 scores,

I'm not too sure as to whether or not it can be simplified...

the function is as follows:

```
void findLowest (int & minScoreP, int score1P, int score2P, int score3P,
int score4P, int score5P)
{
minScoreP = score1P;
if (score2P < minScoreP)
minScoreP = score2P;
if (score3P < minScoreP)
minScoreP = score3P;
if (score4P < minScoreP)
minScoreP = score4P;
if (score5P < minScoreP)
minScoreP = score5P;
}
```

can anyone please help me out?