Предмет: Информатика, автор: Kheda

ДАН ДВУМЕРНЫЙ МАССИВ ЧИСЕЛ. ОПРЕДЕЛИТЬ, СУММУ ЭЛЕМЕНТОВ ВТОРОГО СТОЛБЦА МАССИВА, БОЛЬШИХ 10.

Ответы

Автор ответа: sinbad7
0

var
a: array[1..10, 1..10] of integer;
i, j, s: integer;

begin
s := 0;
for i := 1 to 10 do
begin
for j := 1 to 10 do
begin
a[i, j] := random(20) + 1;
write(a[i, j]:3);
if (j = 2) and (a[i, j] > 10) then s := s + a[i, j];
end;
writeln;
end;
writeln('Сумма элементов 2го столбца больших 10 равна', s);
end.

Похожие вопросы
Предмет: Английский язык, автор: Динка2004
ОЧЕНЬ СРОЧНА НУЖНА ПОМОЩЬ! ЭТО ОЧЕНЬ И ОЧЕНЬ СРОЧНО.

Rebecca was used to … because she was very shy and used to … very awkward sometimes.
1) laugh … being
2) laughing at … be
3) being laughed at … be

Mr. Stone, who seemed … about his breakfast, … to Lima in surprise.
1) to have forgotten … turned
2) to forget … had turned
3) having forgotten … turned

This island is known … by …
1) to have discovered … the German
2) to have been discovered … the Germans
3) to be dscovered … Germans

It is a chance … , so they must make a list of things …
1) not to be missed … to be done
2) not missed … done
3) not to miss … to do

They … very tired if they sat up … late.
1) could be … so
2) must have been … so
3) may be … such

Remember … your tickets and passports before you …
1) to check … will set off
2) to check … set off
3) having checked … have set off

She can't help … that he helps her so …
1) feeling … little
2) to feel … a little
3) feel … few

Tom says he would rather … socccer … tennis
1) play … than
2) playing … than
3) to play … rather than

Jerry is not … man to give … secret.
1) the … out a
2) a … out the
3) the … away a

I see that … is wrong with you. But you should pull … together
1) anything … oneself
2) something … yourself
3) nothing … you

They found … in the street full of …
1) them … peoples
2) themselves … people
3) themself … people

She talked to him … and looked very…
1) cold … angry
2) coldly … angrily
3) coldly … angry

Snow is very … in this place, but once … it won't stop for weeks.
1) rare … having begun
2) rare … beginning
3) rarely … begun

No sooner … on the light, than he saw that the window …
1) he switched … had broken
2) had he switched … had been broken
3) he had switched … was broken