Can smbd help me with this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
18th Jul 2019, 9:14 AM
Тимур Хайдаршин
Тимур Хайдаршин - avatar
5 Answers
+ 1
You also haven't declared what the type of userInt and userChar are, and you have to convert Console.Readline to int if you want to read it as one. Your code also would work smoother if you use else if to link statements that are related to each other together rather than seperate if statements. Let me know if you run into problems and I can annotate your code for you if you like.
18th Jul 2019, 9:41 AM
Rincewind
Rincewind - avatar
+ 2
Try the code after removing'=' from the 23 line after .readline
18th Jul 2019, 9:32 AM
Ankul Chaudhary
Ankul Chaudhary - avatar
+ 1
Take a look at this, let me know if it doesn't make sense: https://code.sololearn.com/cjR3pNbdYH7K/#cs
18th Jul 2019, 10:21 AM
Rincewind
Rincewind - avatar
+ 1
Thank gou so much! I appreciate your help!
18th Jul 2019, 10:40 AM
Тимур Хайдаршин
Тимур Хайдаршин - avatar
0
Ok, I'll try. How to declare and where to do that?(in which lines?) Can you please annotate it for me? I've got no Idea how to make it ((
18th Jul 2019, 10:11 AM
Тимур Хайдаршин
Тимур Хайдаршин - avatar