Menampilkan Data Array Pascal
Menampilkan Data Array Pascal
uses crt;
var
x: array[1..5] of integer;
y: integer;
begin
clrscr;
for y:= 1 to 5 do
begin
readln(x[y]);
end;
for y := 1 to 5 do
begin
writeln('Nilai data pada x ',y,'=',x[y]);
end;
readln;
end.
end.
Komentar
Posting Komentar