Question: C - string, C + + , Variable employeeID is assigned with a string read from input. For each character in employeeID, output each character

C-string, C++,
Variable employeeID is assigned with a string read from input. For each character in employeeID, output each character followed by an exclamation mark character ('!').
Ex: If the input is D1X6B4, then the output is:
D!1!X!6!B!4!
#include
#include
using namespace std;
int main(){
char employeeID[25];
int i;
cin >> employeeID;
/* Your code goes here */
cout <<
endl;
return 0;
}

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 Programming Questions!