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
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

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
Get step-by-step solutions from verified subject matter experts
