Reply To: Programming
A Tale of 2 Secrets › Forums › T.E.M.P.E.S.T. › Programming › Reply To: Programming
9th November 2025 at 9:14 pm
#113080
F6EXB_the_frenchy
Participant
#113017
@byteinbits
An ugly program. I am too lazy to filter numbers with 1 as last digit.
for X in range(102 , 999999):
Y1 = str(X) # X ==> CHAINE
#print("X :", Y1)
Y = Y1[-1] # Y dernier caractère ==> CHAINE
#print("Y :",Y)
Z = X * int(Y) # produit de deux ENTIERS
#print("Z :", Z)
W = Y + Y1[0 : -1]
#print("W :", W)
if int(W) == Z:
print("réponse", X)
réponse 111
réponse 1111
réponse 11111
réponse 102564
réponse 111111