I looking forward to your feedback and comments
All results will be in the console.
In task 3, I found two possible solutions, but something tells me that both of them are not too appropriate for this task))
Nevertheless, what do you think about both solutions, is it acceptable to use them?
You probably agree that the version with the many cases feels a bit unpractical
However, the other version looks pretty good to me. It’s a rather unusual situation to just have a value as switch expression and conditions in the cases, but this is the intended solution. The only thing you could do is removing the first case and adding a default case at the end that handles those out of bound values.