Question: I need help with C++ code can you fix my code? here is my code #include #include using namespace std; int main () { string

I need help with C++ code

can you fix my code?

here is my code

#include #include using namespace std;

int main () { string in,op=""; cin>>in; for (int i = 0; in[i]!='\0'; i++) { switch (in[i]) { case 'i': op += "!"; break; case 'a': op += "@"; break; case 'l': op += "1"; break; case 'B': op += "8"; break; case 'E': op+='3'; break; case 'm': op+='M'; break; case 's': op+='s'; break; default : op+=in[i]; } } cout

and here are issues

I need help with C++ code can you fix my code? here

1: Compare output a Output differs. See highlights below. Input password Your output p@sswordq*s Expected output passw.rdq*s

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!