Can you please help me get this right? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
16th Nov 2019, 6:56 PM
Woraba Dansua Abban
6 Respostas
+ 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