C = int(input("Digite o valor da constante C:")) for x1 in range(0,C+1): for x2 in range(0,C+1): if(x1 + x2 == C): print(x1, " + ", x2, " = ", C)