Say the numbers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Say the numbers

Hi Coders! I am tried to solve Golang "Say the numbers" but result shows incorrect. Actually i got same result with expected output! I think code is correct! Why test results incorrect? Here is the my solution: https://code.sololearn.com/cv54trG5vSXe

29th Aug 2021, 12:58 PM
#MUHAMMED
#MUHAMMED - avatar
4 Answers
+ 2
#MUHAMMED , where do you check for 0 ? It's missing in your code.
29th Aug 2021, 1:36 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
30th Aug 2021, 3:11 AM
#MUHAMMED
#MUHAMMED - avatar
0
Muhammed! Wouldn't you like to explain that a little. It is totally a mystery to me why you use this. What does strNums mean? and why no switch?
28th Nov 2021, 9:39 AM
Rusty
0
Rusty strNums is array. If you use array u can get it by indexes. If user enters 0 it will return index of array 0,in 0 have "Zero"
30th Nov 2021, 7:36 AM
#MUHAMMED
#MUHAMMED - avatar