0
I try to do this code, but it works only the test case #1, not the others. Can anyone show or explain the error of this code?
Func main(){ var say1, say2, say3 int fmt.Println(&say1) fmt.Println(&say2) fmt.Println(&say3) say1 := numStr(say1) say2 := numStr(say2) say3 := numStr(say3) numstr := [ ]string{"Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten"} var say1 string = "One" var say2 string = "Two" var say3 string = "Three" fmt.Println(say1) fmt.Println(say2) fmt.Println(say3) }
1 ответ
+ 1
This won't work like this
You need to create an object and store the value in it
Take 3 input then change the respective value with the help of object.