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