Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var i,input,max:integer;
- input:array[1..10] of integer;
- begin
- for i:=1 to 10 do
- begin
- readln(input);
- input[i]:=input;
- end;
- max:=input[1];
- for i:=2 to 9 do
- if max<input[i] then
- max:=input[i];
- writeln('the max is',max);
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement