标签:i++ AMM highlight fir golang hello ram var main
package main import "fmt" /* my first programmer in go */ func fib(n int) int{ if n<2{ return n } return fib(n-1)+fib(n-2) } func max(x, y int) int{ if x>y{ return x } return y } func main(){ var i int fmt.Println("Hello, world!") for i=0;i<10;i++{ fmt.Printf("%d\t", fib(i)) } fmt.Println(max(12, 545)) }
标签:i++ AMM highlight fir golang hello ram var main
原文地址:https://www.cnblogs.com/zhengze/p/10730300.html