fibonacci sequence
// Copy pastecode here https://play.golang.org/
package main
import "fmt"
func fibo(n int) int {
x, y := 0, 1
for i := 0; i < n; i++ {
x, y = y, x+y
}
return x
}
func main() {
for i := 0; i < 10; i++ {
fmt.Println("fibo of", i, "is", fibo(i))
}
}