Given a large number in form of string N, the task is to insert a dash between two adjacent odd digits in the given number in form of strings.

Examples:

Input:_ N = 1745389_

Output:_ 1-745-389_

Explanation:

In string str, str[0] and str[1] both are the odd numbers in consecutive, so insert a dash between them.

Input:_ N = 34657323128437_

Output:_ 3465-7-323-12843-7_

#pattern searching #strings #cpp-regex #java-regular-expression #number-digits #regular-expression

Program to insert dashes between two adjacent odd digits in given Number
13.40 GEEK