return breaks the flow of execution so the else block is extraneous in this case. if the number is even, execution will stop after number * 8. otherwise it will continue to run until it hits the next return statement
Thanks for your time but there are no random test that are mandatory now.
Moreover I think you need some more experience at CW before translating.
Cheers
Thank you for asking this because I had the sme question.
Damn! Makes sense! Thanks!
return breaks the flow of execution so the else block is extraneous in this case. if the number is even, execution will stop after number * 8. otherwise it will continue to run until it hits the next return statement
So we don't need to use Else? I thought this way would return both *8 and *9 for even numbers.
Outdated translation, needs update.
https://www.codewars.com/kumite/5b34bd0b2ae75477d5000021?sel=5d6c7ce0dd93aa002891629e
Merge conflict.
Random tests would be nice too.
Thanks for your time but there are no random test that are mandatory now.
Moreover I think you need some more experience at CW before translating.
Cheers