Share this post

Link to post

Share on other sites

Advertising

Lord Method Man 1,613

Set a variable to keep track of the oldest character, initialize it to 99999 or something.

Inside the loop, if the year of creation for that character is less than the oldestCharacter, update oldestCharacter to that character's year of creation and save the character's name to a separate variable, output it at the end.