Que fait le python ?
import numpy as np
print("debut pgm") cpt = 0 for i in [1,3,5,7,9] : for j in [1,3,5,7,9] : for k in [1,3,5,7,9] : num = 100 * k + 10 * j + i for l in [0,2,4,6,8] : for m in [0,2,4,6,8] : for n in [0,2,4,6,8] : den = 100 * n + 10 * m + l cpt = cpt + 1 l1 = l * num l2 = m * num l3 = n * num tt = 100 * l3 + 10 * l2 + l1 l1m = l1 / 1000 l1c = (l1 -l1m * 1000) / 100 l1d = (l1 - l1m * 1000 - l1c * 100)/ 10 l1u = (l1 - l1m * 1000 - l1c * 100 - l1d * 10) if l1c <> 0 and l1c <> 2 and l1c <> 4 and l1c <> 6 and l1c <> 8 : continue if l1d <> 1 and l1d <> 3 and l1d <> 5 and l1d <> 7 and l1d <> 9 : continue if l1u <> 0 and l1u <> 2 and l1u <> 4 and l1u <> 6 and l1u <> 8 : continue l2m = l2 / 1000 l2c = (l2 -l2m * 1000) / 100 l2d = (l2 - l2m * 1000 - l2c * 100)/ 10 l2u = (l2 - l2m * 1000 - l2c * 100 - l2d * 10) if l2c <> 0 and l2c <> 2 and l2c <> 4 and l2c <> 6 and l2c <> 8 : continue if l2d <> 1 and l2d <> 3 and l2d <> 5 and l2d <> 7 and l2d <> 9 : continue if l2u <> 0 and l2u <> 2 and l2u <> 4 and l2u <> 6 and l2u <> 8 : continue l3m = l3 / 1000 l3c = (l3 -l3m * 1000) / 100 l3d = (l3 - l3m * 1000 - l3c * 100)/ 10 l3u = (l3 - l3m * 1000 - l3c * 100 - l3d * 10) if l3c <> 0 and l3c <> 2 and l3c <> 4 and l3c <> 6 and l3c <> 8 : continue if l3d <> 1 and l3d <> 3 and l3d <> 5 and l3d <> 7 and l3d <> 9 : continue if l3u <> 0 and l3u <> 2 and l3u <> 4 and l3u <> 6 and l3u <> 8 : continue tt5 = tt / 100000 tt4 = (tt -tt5 * 100000) / 10000 tt3 = (tt - tt5 * 100000 - tt4 * 10000)/ 1000 tt2 = (tt - tt5 * 100000 - tt4 * 10000 - tt3 * 1000) / 100 tt1 = (tt - tt5 * 100000 - tt4 * 10000 - tt3 * 1000 - tt2 * 100) / 10 tt0 = (tt - tt5 * 100000 - tt4 * 10000 - tt3 * 1000 - tt2 * 100 - tt1 * 10) if tt4 <> 0 and tt4 <> 2 and tt4 <> 4 and tt4 <> 6 and tt4 <> 8 : continue if tt3 <> 1 and tt3 <> 3 and tt3 <> 5 and tt3 <> 7 and tt3 <> 9 : continue if tt2 <> 0 and tt2 <> 2 and tt2 <> 4 and tt2 <> 6 and tt2 <> 8 : continue if tt1 <> 1 and tt1 <> 3 and tt1 <> 5 and tt1 <> 7 and tt1 <> 9 : continue if tt0 <> 0 and tt0 <> 2 and tt0 <> 4 and tt0 <> 6 and tt0 <> 8 : continue print (k, j, i, " * ", n, m, l, num, den, num * den) print ("- - - - - - - - - - - - ") print ( cpt ) print("fin de pgm")









