@blobbob110: The comment on line 5 is incorrect; the values could be equal too.
@cxxsey:
You need a variable to memorize the "top month". When you read a new month, you have to test whether it is higher than the top so far. If it is, then you update the top to point to this new winner. When all months have been seen, the top month is known.