School or college

  • 3
  • Locked
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.
You can't complete this task, because you're not signed in.
Comments (1)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
atb2199
Level 18 , United Kingdom, United Kingdom
17 August 2022, 12:51
This was a hard one, mainly due to the nesting requirements. Don't forget the curly braces, and operators.