I made a program that reads golf scores and pars from a file.
It then assigns the appropriate comment depending on the score.
Everything works fine, but I also need the sum of all the scores.
How do I use a loop to read the file again and add the scores and return their sum.
Any help would be appreciated