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.
Maybe it was fixed recently, but yeah, I got confused thinking it was a percentage and not dollar amount.
Thank you! That makes sense. Yes, I posted the other solution by accident.
We don't know what you did, you only posted the code with if statement. But a switch block compares a value against some other value using strict equality (===), you can't use greater than or less than in them. Read the docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/switch
If you wrote something like this:
That won't work. You could do something else to make a switch work in that but it's not good practice.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
По условиям не говориться что скидки суммируются, значит нет
Phyton
Хорошее упражнение для if, elif, else
this is by far the worst KATA I have seen in C. Unclear instructions, what am I supposed to do with it. Codewars please ban this guy from making more KATAs.
Description should mention
d
will always be a positive integeror maybe you could just write in english...
Автор, исправь задание, здесь нет вычисления скидки по проценту . Понижение от общей суммы происходит на основе фикисированных значений: 20 и 50.
A great little logic exercise, perfect for new coders.
You are correct, I changed the comparison symbol and the problem became correct. The error is in the problem itself.
It doesn't say that, it says $20 off. There is no percentage anywhere in the kata's description, only fixed values.
the instructions are very unclear, you say 20% off the total. but the actual calculation you used isnt even 20% off the total, this isnt how percentages work in math.
Loading more items...