Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
1 input a
2 input b
3 input c
20 if a> b then goto 60
30 if b> c then goto 110
40 max=с
50 goto 120
60 if a> c then goto 90
70 max=с
80 goto 120
90 max=a
100 goto 120
110 max=b
120 if a< b then goto 160
130 if b< c then goto 210
140 min=с
150 goto 220
160 if a< c then goto 190
170 min=с
180 goto 220
190 min=a
200 goto 220
210 min=b
220 print min*max
1)
var
i,k: integer;
a: array [1..14] of integer;
begin
k: =0;
for i: =1 to 14 do
a[i]: =random(46)-15;
write(a[i]: 3);
if a[i] mod 2=0 then k: =i;
end;
if k> 0 then
for i: =k to 13 do a[i]: =a[i]+1;
a[14]: =0;
writeln;
for i: =1 to 14 do write(a[i]: 3);
end.
2)
for i: =1 to 7 do
k: =a[i];
a[i]: =a[i+7];
a[i+7]: =k;
Популярные вопросы