Can you please help me get this right? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
16th Nov 2019, 6:56 PM
Woraba Dansua Abban
6 Antworten
+ 5
If you can tell us what you expect and what your problem is, it might be possible to help you.
16th Nov 2019, 7:07 PM
Lothar
Lothar - avatar
+ 4
Woraba Dansua Abban , the input is read as string so you need to convert it to int. Please look at the corrected code. Hope now everything is clear ­čÉ▒ https://code.sololearn.com/cbKlmA9ydtFn/?ref=app
16th Nov 2019, 7:16 PM
TheWh┬íteCat ­čçž­čçČ
TheWh┬íteCat ­čçž­čçČ - avatar
+ 2
It outputs the last else statement no matter what you input...
16th Nov 2019, 7:09 PM
Woraba Dansua Abban
+ 2
TheWh┬íteCat ­čçž­čçČ That was a good answer. I hope Woraba Dansua Abban acknowledges it.
17th Nov 2019, 12:01 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
Thanks guys...I've perfectly understood...­čśŐ­čśŐ
19th Nov 2019, 4:12 PM
Woraba Dansua Abban
+ 1
But if you determine the value while creating the code,it uses the code rightly
16th Nov 2019, 7:09 PM
Woraba Dansua Abban