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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!