I have tried solving this problem but didn't get one tests right.. Can anyone help me | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I have tried solving this problem but didn't get one tests right.. Can anyone help me

https://www.sololearn.com/coach/64?ref=app https://code.sololearn.com/c313ICV3J6Ye/?ref=app

10th Apr 2020, 8:29 AM
Manoj Prasanna
4 Answers
+ 2
Manoj , you don't check for 10 in your code. I think that's the test case you are failing.If I enter 10 your code outputs "one zero", instead of "ten".
10th Apr 2020, 8:38 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
Manoj, you have missed the case of 10 as an input but you cannot give a case of 10 in your code since you have used character data type in switch case, so it will be better if you replace character data type by String in the whole programme.
10th Apr 2020, 9:18 AM
Rohit Chaudhary
Rohit Chaudhary - avatar
0
Manoj , please attach your code. Otherwise how can someone know what is missing in your logic.
10th Apr 2020, 8:32 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
Okay thank you for suggestions..
10th Apr 2020, 9:40 AM
Manoj Prasanna