Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package area
- import "math"
- // Pi value is public for the other packages that will import this
- const Pi = 3.1415
- // Circ ...
- func Circ(raio float64) float64 {
- return math.Pow(raio, 2) * Pi
- }
- // Rect ...
- func Rect(base, altura float64) float64 {
- return base * altura
- }
- // Not exported function
- func trianguloEquilatero(base, altura float64) float64 {
- return (base * altura) / 2
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement