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.
same
This is the best response readability-wise
My maths lecturer would be appauled by your comment @Encription0001 :D This code can be refactored to any value of water when you multiply. You should never use proper fractions, e.g. 1/2 (/2) 1/4 (/4) as cases such as .75 would mean 3/4 and you cant use the divide operator without multiplying the numerator thats > 1. e.g. ((1/4)*3) and using integer conversion will always round down a floating point number.
Actually is multiplied by 0.5 liters of water.
Now you can easily change the hard-coded 0.5 to the new amount of water in the variable and the code will be the same.
Using divide by 2 just change the amount of water to 750ml and all code needs to be refactored.
I did the same!