diff options
Diffstat (limited to 'Problem9.py')
-rw-r--r-- | Problem9.py | 12 |
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) |