mirror of
https://github.com/venomade/calculator.git
synced 2026-11-16 18:27:39 +00:00
Fix CircleArea negative radius
This commit is contained in:
1 parent
b6549523a1
commit
f7d0729b61
1 file changed
+1
-1
+1
-1
@@ -16,7 +16,7 @@ def CircleArea(r):
|
|||||||
if r >= 0:
|
if r >= 0:
|
||||||
return 3.14 * r * r
|
return 3.14 * r * r
|
||||||
else:
|
else:
|
||||||
return "NaN"
|
return "Error"
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
while True:
|
while True:
|
||||||
|
|||||||
Reference in new issue
Block a user