Skip to content

Instantly share code, notes, and snippets.

@yarneo
Created February 6, 2016 19:52
Show Gist options
  • Save yarneo/0033aaadba69b180a1a4 to your computer and use it in GitHub Desktop.
Save yarneo/0033aaadba69b180a1a4 to your computer and use it in GitHub Desktop.
func calculateCircle(radius : Double) ->
(area : Double, circumference : Double, diameter : Double) {
return (M_PI * pow(radius, 2), 2 * M_PI * radius, 2 * radius)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment