Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- "math"
- )
- func main() {
- var r float64
- fmt.Scanln(&r)
- var area = math.Pi * r * r
- var perimeter = 2 * math.Pi * r
- fmt.Printf("%.2f\n%.2f", area, perimeter)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement