Exercise: circle STDIN
Write a program that asks the user for a number, the radius of a circle, and prints out the area and the circumference of the circle.
go run circle.go
radius: 2
Area:
Circumference:
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Write a program that asks the user for a number, the radius of a circle, and prints out the area and the circumference of the circle.
go run circle.go
radius: 2
Area:
Circumference: