(* Mostrar los elementos de un array *)
program ArraysMostrar;
const
N = 6;
var
datos: array[1..N] of integer;
i: integer;
begin
datos[1] := 10;
datos[2] := 20;
datos[3] := 15;
datos[4] := 12;
datos[5] := 30;
datos[6] := 8;
for i := 1 to N do
write( datos[i], ' ');
writeLn;
end.