Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Restricting inputs to integers is silly. Accept floating point inputs. You have to deal with floating point numbers anyway.
Rounding is not the correct solution for floating point representation inaccuracy. Testing with a margin for error is.
See Docs -> Authoring -> Recipes -> Working with Floating-Point Numbers.
Such katas are worthless and it will eventually end up like this one due to 1, 2 and 3