Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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
17th Apr 2021, 4:43 PM
A͢J
A͢J - avatar
+ 4
Coding Mafia Use string datatype. Check code again string s;
17th Apr 2021, 4:57 PM
A͢J
A͢J - avatar