- 3
Help please in Go
Can someone please help me out with How Many Rabbits practice for Go language?
4 Respuestas
+ 8
lab = lab * 2
+ 1
Just figured it out lol. Lab = lab * 2
Thanks for helping
0
package main
import "fmt"
func main() {
var years int
fmt.Scanln(&years)
lab := 7
//your code goes here
for i:=0; i<years; {
lab := lab * 2
i++
}
fmt.Println(lab)
}
0
Yeah that keeps giving me an error but not getting why