I want to campare my input char value with my own char value please help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

15th Apr 2020, 2:14 PM
¥!$!π
10 Answers
+ 2
There were some errors on line 13 now I fix all check it working fine https://code.sololearn.com/c8JoyqwqOlA0/?ref=app
15th Apr 2020, 2:19 PM
Muhammad Bilal
Muhammad Bilal - avatar
0
I didn't get it
15th Apr 2020, 2:20 PM
¥!$!π
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
15th Apr 2020, 2:23 PM
¥!$!π
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
15th Apr 2020, 2:23 PM
Muhammad Bilal
Muhammad Bilal - avatar
0
Its working but I have to put everything like a,b and char value
15th Apr 2020, 2:25 PM
¥!$!π
0
I just want the compiler everytime ask me to take input from user
15th Apr 2020, 2:26 PM
¥!$!π
0
How I can achieve that
15th Apr 2020, 2:26 PM
¥!$!π
0
Thanks for your help
15th Apr 2020, 2:27 PM
¥!$!π
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.
15th Apr 2020, 2:29 PM
Muhammad Bilal
Muhammad Bilal - avatar
0
Ok thanks
15th Apr 2020, 2:32 PM
¥!$!π