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.
Great thought process.
Man I was so close to this solution but unfortunately I didn't realize that you need to add a parenthesis enclosing all the statements.
Simple and neat, that makes it beautiful.
I wish i could downvote this ... ;)
You have to calculate (Math.Sqrt(Math.Pow(x, 2) + Math.Pow(y, 2) in the beginning many times. Will it be much better if you'll use a double variable for the result for the further checking?
One core principle of software developement is abstraction. Please use it.
+1 clever for Worst Practices. :)