Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var num, max, n, i : integer;
- BEGIN
- readln(n);
- max := -1;
- for i := 1 to n do
- begin
- readln(num);
- if((num mod 10 = 3) and (num > max)) then
- max := num;
- end;
- writeln(max);
- END.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement