Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
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.
program nn;
uses crt;
var a: array [1..20] of real;
t: real;
i,n,min: integer;
{ввод последовательности, это самостоятельно}
min : = 1;
for i : = 1 to 20 do
if a[i] < a[min] then
min : = i;
t : = a[min];
a[min] : = a[20-n];
a[20-n] : = t;
Популярные вопросы