0
I want to campare my input char value with my own char value please help
I am taking a character input from user, I want to compare that value with my char value . Please help how to do it??? https://code.sololearn.com/cens61j91Z4Y/?ref=app
10 ответов
+ 2
There were some errors on line 13 now I fix all check it working fine
https://code.sololearn.com/c8JoyqwqOlA0/?ref=app
0
I didn't get it
0
I get it I have to enter the everything like a,b and char value. I am just checking only putting a and b I have not put the char value
0
On line 13 you have used one equal sign but for comparison you have to use double equal symbol(==).
Secondly you are comparing it with Y that is wrong it seems that you are comparing it with variable named Y.For comparing it with character Y you have to use it as 'Y'.now this is comparing with character Y
0
Its working but I have to put everything like a,b and char value
0
I just want the compiler everytime ask me to take input from user
0
How I can achieve that
0
Thanks for your help
0
¥!$!π
In sololearn we have to provide all inputs before execution of program that is limitations of it.So,in sololearn it is not possible.If you are using any other ide than you can do it.
0
Ok thanks