GOLANG - 17 Code Project - Say The Numbers
I try to do the project but i dont know why is wrong with my code. Could someone help me please? /* 17 Code Project - Say The Numbers You are making a robot that can speak numbers. Your robot should take 3 numbers in the range of 0-10 as input and output the corresponding texts in English.*/ package main import ( "fmt" "math/rand" "time" ) func main() { //your code goes here rand.Seed(time.Now().UnixNano()) for i:= 1; i <= 3; i++ { min := 0 max := 10 x := rand.Intn(max - min + 1) + min switch x { case 0: fmt.Println("Zero") case 1: fmt.Println("One") case 2: fmt.Println("Two") case 3: fmt.Println("Three") case 4: fmt.Println("Four") case 5: fmt.Println("Five") case 6: fmt.Println("Six") case 7: fmt.Println("Seven") case 8: fmt.Println("Eight") case 9: fmt.Println("Nine") case 10: fmt.Println("Ten") } } }