- 3

Help please in Go

Can someone please help me out with How Many Rabbits practice for Go language?

26th Jun 2021, 12:34 AM
Eric Manfred
Eric Manfred - avatar
4 ответов
+ 8
lab = lab * 2
26th Jun 2021, 1:34 AM
Simba
Simba - avatar
+ 1
Just figured it out lol. Lab = lab * 2 Thanks for helping
26th Jun 2021, 1:39 AM
Eric Manfred
Eric Manfred - avatar
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) }
26th Jun 2021, 1:27 AM
Eric Manfred
Eric Manfred - avatar
0
Yeah that keeps giving me an error but not getting why
26th Jun 2021, 1:35 AM
Eric Manfred
Eric Manfred - avatar