would someone be able to give me an idea of how to start coding this in C?
You just finished playing cards with a group of friends and each time your score changed in the game you wrote
it down. Given the total number of points it takes to win the game and all of your scores (a maximum of 25) determine
how many games were played and the number of games that you won. At the start of each new game the scores would
reset back to zero but you didn't always write this down.
ex:
Enter winning score: 5
Enter score #1 or -1 to exit: 1
Enter score #2 or -1 to exit: 2
Enter score #3 or -1 to exit: 3
Enter score #4 or -1 to exit: 1
Enter score #5 or -1 to exit: 2
Enter score #6 or -1 to exit: 1
Enter score #7 or -1 to exit: 2
Enter score #8 or -1 to exit: 3
Enter score #9 or -1 to exit: 4
Enter score #10 or -1 to exit: 1
Enter score #11 or -1 to exit: 3
Enter score #12 or -1 to exit: 5
Enter score #13 or -1 to exit: 1
Enter score #14 or -1 to exit: 2
Enter score #15 or -1 to exit: -1
Scores entered (14): {1, 2, 3, 1, 2, 1, 2, 3, 4, 1, 3, 5, 1, 2}
Number of games won: 1
Number of games played: 5