create an array of marks [1..5] then create a while loops to ask the user for 5 marks then displayed all stired marks.
program marks;
var
mark:array[1..5] of integer;
x:integer;
counter:integer;
Begin
counter:=1;
x:=1;
while (counter<=5) do
begin
writeln('input marks');
readln(mark[x]);
x:=x+1;
counter:=counter+1;
end;
writeln(mark[3]);
end.
thankx in advanced for an help