Created
March 5, 2022 12:11
-
-
Save theabbie/2606ea4dade8501997df02d5e46e6b9b to your computer and use it in GitHub Desktop.
Dcoder Floating Circle Solution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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