我的第一个GO程序

这是我第一个go程序

func main() {//求圆的面积
var r float32 =10
    var l float32
l=2*3.14*r
fmt.Println("圆的周长为",l)

}

评论

暂无评论