Print first pythagore's triplets

This commit is contained in:
lafrite 2014-02-12 07:45:00 +01:00
parent c6cfab1d44
commit 48b5713862

View File

@ -23,6 +23,11 @@ def pythagore_triplet(v_min = 1, v_max = 10):
if __name__ == '__main__': if __name__ == '__main__':
print(pythagore_triplet()) print(pythagore_triplet())
for j in range(1,10):
for i in range(j,10):
print((i**2-j**2 , 2*i*j, i**2 + j**2))