Guest User

Untitled

a guest
Mar 24th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. ## Dash Insert
  2. * 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.
  3.  
  4. - dashInsert(454793) returns 4547-9-3
  5. - dashInsert(334457) returns 3-3445-7
Add Comment
Please, Sign In to add comment