Season Codes and a Count

Easy

Declare enum season with the four seasons in order, spring first, followed by a final SEASON_COUNT marker. Print each season's value one per line, then the number of seasons taken from the marker, then the value of a variable of the enum type initialized to autumn. Let the automatic numbering produce every number: do not type the values yourself.

Success Criteria

Your code must pass 1 test case(s) to complete this exercise. 3 hint(s) are available if you need help.

Sign in to track your progress

You can work on exercises as a guest, but sign in to track your progress and save your submissions.

This platform is built by its community

Every lesson, project, and tool on HelloC++ is funded by sponsors. Join them and help shape what we build next.

Become a Patron

How did you find this exercise?

Your rating helps us improve the content.