Skip to content

Instantly share code, notes, and snippets.

@sajjadyousefnia
Created April 28, 2018 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sajjadyousefnia/881cd3834fbe75a900a6f1f0ed2a2f96 to your computer and use it in GitHub Desktop.
Save sajjadyousefnia/881cd3834fbe75a900a6f1f0ed2a2f96 to your computer and use it in GitHub Desktop.
print(calCircumference(24.0)) // used default value for PI and prints 150.79644737231007
print(calCircumference(24.0, 3.14)) // passed value for PI and prints 150.72
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment