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.
Yes, you need to reuse the input conserving its format.
The description gives an exact algorithm to calculate the output from the input, what's the problem, concretely?
You need to return the answer, not print it.
congrats, you're welcome, happy coding
consider this feedback using
console.log(
n = ${n});
at the beginning of your code:725635
10
1
10 and 11 are not inputs, they're your outputs, and other numbers are expected outputs. The part of while (...) { do some actions; return sum } will always exit after 1 iteration, so that's probably not what you want.
Same here i ;)
yep, try to simplyfy it this doesnt works like GooglePay where you already have 25 and then if u get 100 more u could easily add it to main balance and give 75 back, having 50 rs as balance. these are real curruny notes thats why it tends to confuse us!