ch01_ex130_1_prof.py

Created by manuel-2de-indice2019

Created on October 11, 2019

216 Bytes


def tripletspythagore(n):
    for a in range(1,n+1):
        for b in range(a+1,n+1):
            for c in range(b+1,n+1):
                if a**2+b**2==c**2:
                    print(a,b,c)