Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 4
Coding Mafia
char stores 1 character but here "add" is not a character it's String so you can't compare char with String.
Do like this
https://code.sololearn.com/cmlUGNYJ7lMd/?ref=app
+ 4
Coding Mafia
Use string datatype. Check code again
string s;