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
4 ответов
+ 2
#MUHAMMED , where do you check for 0 ? It's missing in your code.
+ 2
Another solution:
https://code.sololearn.com/cs1Jkt2s3fCC
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?
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"