Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5
you are taking input as character , so you have to declare data type as " char " . you have complete so many courses including C and Cpp then I don't know why you are asking this question !
15th May 2021, 1:02 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
+ 3
🅰🅹 🅐🅝🅐🅝🅣 But he has completed all code coach and how can he come up with such questions? Because this is a very basic program of strings? Question Guru badge but how can anyone upvote this question?
15th May 2021, 2:35 PM
Atul [Inactive]
+ 2
Because here the consideration is about single character
15th May 2021, 1:05 PM
Atul [Inactive]
+ 2
Thirt13n Wow he blocked me. 😃😃😃😃 Well doesn't matter for me but maybe you are next. He is blocking everyone who understand why he is asking such a questions.
15th May 2021, 2:30 PM
A͢J
A͢J - avatar
+ 2
🅰🅹 🅐🅝🅐🅝🅣 You're 100% right my friend! "Most probably to get Question Guru Badge." he is a spammer.
15th May 2021, 2:39 PM
Rohit
+ 2
rkk He has almost completed all courses of sololearn. How could he able to solve projects?
15th May 2021, 3:01 PM
Atul [Inactive]
+ 1
Thirt13n Most probably to get Question Gutu Badge.
15th May 2021, 2:13 PM
A͢J
A͢J - avatar
+ 1
Atul "Question guru badge" and not "Code coach badge". When you have like 50 questions with each question having 5 upvotes then you get a badge and XPS.
15th May 2021, 3:07 PM
Rohit
0
Because you use char variable . Char variable is a single letter, what you have in if condition.
16th May 2021, 1:00 PM
TeaserCode