0

What is the problem in this code? Please check

https://code.sololearn.com/c5mQ7512LH9t/?ref=app

8th Oct 2020, 12:22 AM
M. Abdullah Al Mahi
M. Abdullah Al Mahi - avatar
2 Réponses
+ 5
M. Abdullah Al Mahi You forgot to check for 2 and 10.You need to convert both of them into words. Since the instructions clearly said - " you decide that for numbers 10 and under you would rather write the word out instead. "
8th Oct 2020, 12:42 AM
Minho
Minho - avatar
+ 5
I made this simpler and cleaner code for you that works: https://code.sololearn.com/cy8R8Z3cegO8/?ref=app
8th Oct 2020, 10:55 PM
Galaxy-Coding (inactive)
Galaxy-Coding (inactive) - avatar