#34 Write Number in Expanded Form
Write Number in Expanded Form
You will be given a number and you will need to return it as a string in Expanded Form. For example:
Kata.expandedForm(12); # Should return "10 + 2"
Kata.expandedForm(42); # Should return "40 + 2"
Kata.expandedForm(70304); # Should return "70000 + 300 + 4"
NOTE: All numbers will be whole numbers greater than 0.
'매일매일개발 > Codewars' 카테고리의 다른 글
codewars #36 The Supermarket Queue (6kyu) (1) | 2018.05.07 |
---|---|
codewars #35 Persistent Bugger. (6kyu) (1) | 2018.05.04 |
codewars #33 Vasya - Clerk (6kyu) (1) | 2018.05.02 |
codewars #32 Dubstep (6kyu) (0) | 2018.05.01 |
codewars #31 extract file name (6kyu) (0) | 2018.04.30 |