Skip to content

Instantly share code, notes, and snippets.

@theabbie
Created March 5, 2022 12:11
Show Gist options
  • Save theabbie/2606ea4dade8501997df02d5e46e6b9b to your computer and use it in GitHub Desktop.
Save theabbie/2606ea4dade8501997df02d5e46e6b9b to your computer and use it in GitHub Desktop.
Dcoder Floating Circle Solution
r = input()
if float(r) <= 0:
print(0)
else:
print("{:.2f}".format(eval("3.14 * {} * {}".format(r, r))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment