I*T*S
=N+O+W
I T S N O W O U T =O*U*T
2 1 6 0 3 9 3 4 1 12
2 1 6 9 3 0 3 4 1 12
2 1 6 0 4 8 4 3 1 12
2 1 6 8 4 0 4 3 1 12
2 1 9 7 3 8 3 6 1 18
2 1 9 8 3 7 3 6 1 18
2 1 9 4 6 8 6 3 1 18
2 1 9 5 6 7 6 3 1 18
2 1 9 7 6 5 6 3 1 18
2 1 9 8 6 4 6 3 1 18
2 3 4 7 8 9 8 1 3 24
2 3 4 9 8 7 8 1 3 24
3 1 6 4 9 5 9 2 1 18
3 1 6 5 9 4 9 2 1 18
4 1 6 7 8 9 8 3 1 24
4 1 6 9 8 7 8 3 1 24
4 3 2 7 8 9 8 1 3 24
4 3 2 9 8 7 8 1 3 24
6 1 2 0 3 9 3 4 1 12
6 1 2 9 3 0 3 4 1 12
6 1 2 0 4 8 4 3 1 12
6 1 2 8 4 0 4 3 1 12
6 1 3 4 9 5 9 2 1 18
6 1 3 5 9 4 9 2 1 18
6 1 4 7 8 9 8 3 1 24
6 1 4 9 8 7 8 3 1 24
9 1 2 7 3 8 3 6 1 18
9 1 2 8 3 7 3 6 1 18
9 1 2 4 6 8 6 3 1 18
9 1 2 5 6 7 6 3 1 18
9 1 2 7 6 5 6 3 1 18
9 1 2 8 6 4 6 3 1 18
from
DEFDBL A-Z
CLS
FOR i = 1 TO 9
used(i) = 1
FOR t = 1 TO 9
IF used(t) = 0 THEN
used(t) = 1
FOR s = 1 TO 9
IF used(s) = 0 THEN
used(s) = 1
its = i * t * s
FOR o = 1 TO 9
IF used(o) = 0 THEN
used(o) = 1
FOR u = 1 TO 9
IF used(u) = 0 THEN
used(u) = 1
outval = o * u * t
IF outval = its THEN
FOR n = 0 TO 9
IF used(n) = 0 THEN
used(n) = 1
FOR w = 0 TO 9
IF used(w) = 0 THEN
used(w) = 1
now = n + o + w
IF now = its THEN
PRINT i; t; s, n; o; w, o; u; t, now
END IF
used(w) = 0
END IF
NEXT
used(n) = 0
END IF
NEXT
END IF
used(u) = 0
END IF
NEXT
used(o) = 0
END IF
NEXT
used(s) = 0
END IF
NEXT
used(t) = 0
END IF
NEXT
used(i) = 0
NEXT
|
Posted by Charlie
on 2013-07-10 12:55:09 |