Magna Concursos
1876186 Ano: 2005
Disciplina: TI - Desenvolvimento de Sistemas
Banca: CESGRANRIO
Orgão: MPE-RO

O algoritmo abaixo foi elaborado para manipular duas

matrizes.

procedure Matriz;

var

A : array of array of Integer;

I, J, N, S : Integer;

begin

N := 3;

S := 0;

SetLength(A, N);

for I := Low(A) to High(A) do

begin

SetLength(A[I], N);

for J := Low(A[I]) to High(A[I]) do

begin

S := S + I + J;

end;

end;

ShowMessage (IntToStr(S));

end;

A procedure Matriz irá apresentar na tela, através do método ShowMessage, o valor:

 

Provas

Questão presente nas seguintes provas