Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
+2): 3+4): 5+6): 7+8): 9=1
1) o+1=1; 2) 1 * 2= 2; 3) 2 + 1 = 3; 4) 3 * 2 =6; 5) 6 * 2 = 12; 5) 12 * 2 = 24; 7) 24 + 1 = 25; 8) 25 * 2 = 50.
3^i = 18
i = 3
ответ. 3 лампочки.
var
i,j,s: integer;
x: array[1..8,1..8] of integer;
y: array[1..10,1..10] of integer;
begin
s: =0;
for i: =1 to 8 do
for j: =1 to 8 do
readln(x[i,j]);
if i< =j then s: =s+x[i,j];
end;
writeln("сумма для x=", s);
for i: =1 to 10 do
for j: =1 to 10 do
readln(y[i,j]);
if i< =j then s: =s+y[i,j];
writeln("сумма для y=", s);
end.
Популярные вопросы