Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Dash Insert
- * Have the function DashInsert(str) insert dashes ('-') between pairs of odd numbers in str. For example: if str is 454793 the output should be 4547-9-3. Don't count zero as an odd number.
- - dashInsert(454793) returns 4547-9-3
- - dashInsert(334457) returns 3-3445-7
Add Comment
Please, Sign In to add comment