PR3-Go-Vortrag/Aufgabe1/circle.go

17 lines
209 B
Go

package main
import (
"fmt"
"math"
)
type Circle struct {
radius float64
}
func main() {
circle := Circle{radius: 6.4}
circumference := 2 * math.Pi * circle.radius
fmt.Println(circumference)
}