summaryrefslogtreecommitdiff
path: root/Problem9.py
diff options
context:
space:
mode:
authorJoshua Drake <joshua.drake@ditchwitch.com>2023-04-07 08:13:49 -0500
committerJoshua Drake <joshua.drake@ditchwitch.com>2023-04-07 08:13:49 -0500
commit1161f9a034de06a63538e3a9a0b7717098c744d9 (patch)
tree55bb842b2daa4f096eb7916a8d3630426fc1c376 /Problem9.py
Initial CommitHEADmaster
Diffstat (limited to 'Problem9.py')
-rw-r--r--Problem9.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/Problem9.py b/Problem9.py
new file mode 100644
index 0000000..eb00757
--- /dev/null
+++ b/Problem9.py
@@ -0,0 +1,12 @@
+import math
+AValue = 0
+BValue = 0
+CValue = 0
+for a in range(1,500):
+ for b in range(a,1000):
+ c = math.sqrt((a*a)+(b*b))
+ if a+b+c == 1000:
+ AValue = a
+ BValue = b
+ CValue = c
+print(AValue*BValue*CValue)