英语翻译-6.将下图中8个字母换成1-8这8个不相同的数,使其四个算式成立.A - B = C [ A B C D E F G H / + 8 7 1 5 6 3 2 4 H D 6 5 1 7 8 4 2 3 = = G * F = E CLSt = 1FOR i = 1 TO 8s = s + i:t = t * iNEXT iFOR a = 6 TO 8 STEP 2FOR c
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/21 08:58:10
英语翻译-6.将下图中8个字母换成1-8这8个不相同的数,使其四个算式成立.A - B = C [ A B C D E F G H / + 8 7 1 5 6 3 2 4 H D 6 5 1 7 8 4 2 3 = = G * F = E CLSt = 1FOR i = 1 TO 8s = s + i:t = t * iNEXT iFOR a = 6 TO 8 STEP 2FOR c
英语翻译
-6.将下图中8个字母换成1-8这8个不相同的数,使其四个算式成立.
A - B = C [ A B C D E F G H
/ + 8 7 1 5 6 3 2 4
H D 6 5 1 7 8 4 2 3
= =
G * F = E
CLS
t = 1
FOR i = 1 TO 8
s = s + i:t = t * i
NEXT i
FOR a = 6 TO 8 STEP 2
FOR c = 1 TO 7
FOR e = 6 TO 8 STEP 2
FOR g = 2 TO 4 STEP 2
b = a - c:d = e - c:f = e / g:h = a / g
IF a + b + c + d + e + f + g + h s THEN 10
IF a * b * c * d * e * f * g * h t THEN 10
PRINT a; b; c; d; e; f; g; h
10 NEXT g,e,c,a
END
英语翻译-6.将下图中8个字母换成1-8这8个不相同的数,使其四个算式成立.A - B = C [ A B C D E F G H / + 8 7 1 5 6 3 2 4 H D 6 5 1 7 8 4 2 3 = = G * F = E CLSt = 1FOR i = 1 TO 8s = s + i:t = t * iNEXT iFOR a = 6 TO 8 STEP 2FOR c
program t2
var
i,s,t,a,b,c,d,e,f,g,h:integer;
begin
t := 1;
for i:=1 to 8 do begin
s := s + i;
t := t * i;
end;
a := 6;
while a