added solutions 4 and 5

This commit is contained in:
JellyWX
2017-06-21 17:42:24 +01:00
parent e51a602c87
commit 1231e9562e
3 changed files with 34 additions and 3 deletions

9
problem4.py Normal file
View File

@ -0,0 +1,9 @@
highest_value = 0
for i in range(100,1000):
for j in range(100,1000):
if str(i*j) == str(i*j)[::-1]:
if i*j > highest_value:
highest_value = i*j
print(highest_value)