So I'm trying to read in an array of years and print how many of those years are over the average. I know the problem lays in my print_avg function but I can't see why it won't work. Any help?
Line 46-47: You have no loop iterating through the array. You're checking the first entry and that's all.
Line 22-23: If the user enters -1, you're adding the -1 to the array and incrementing count. You do allow for this at lines 36 and 39, just a little unorthodox. One doesn't normally put a sentinel value in array and count it.