There is a program that takes an age as input and determines whether you need to head to school or to college. But it doesn't work correctly. For example, a five-year-old child is sent off to college! It isn't difficult to fix the program: just put curly braces in the right place.
School or college
You must be signed in to leave a comment
17 August 2022, 12:51
This was a hard one, mainly due to the nesting requirements. Don't forget the curly braces, and operators.