Question: Using C++ solve the following. A string is provided as an input from the console which consist of integer value. Insert '*' if the subsequent
Using C++ solve the following.
A string is provided as an input from the console which consist of integer value. Insert '*' if the subsequent numbers are even and insert '-' if the subsequent number are odd.
Input: 21462675756 Output: 214*6*2*67-5-7-56
Input: 98676555533 Output: 98*6765-5-5-5-3-3
Sample
21462675756
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
