Do bài tập dùng if nên nó if nhiều nhé bạn.
============================
program Hello;
uses crt;
var a,b,c,d,e: integer;
begin
read(a,b,c,d,e);
d:= 0;
if a mod 2 <> 0 then inc(d);
if b mod 2 <> 0 then inc(d);
if c mod 2 <> 0 then inc(d);
if d mod 2 <> 0 then inc(d);
if e mod 2 <> 0 then inc(d);
write(d);
end.
=============================
program Hello;
uses crt;
var a,b,c,d,e,m: integer;
begin
read(a,b,c,d,e);
m:=a;
if m > b then m:= b;
if m > c then m:= c;
if m > d then m:= d;
if m > e then m:= e;
write(m);
end.
===========================
program Hello;
uses crt;
var a,b,c,d,e,min,max,v: integer;
begin
read(a,b,c,d,e);
max:=a;
v:=1;
if max < b then begin max:= b; v:= 2; end;
if max < c then begin max:= c; v:= 3; end;
if max < d then begin max:= d; v:= 4; end;
if max < e then begin max:= e; v:= 5; end;
if (max = b) or (max = c) or (max = d) or (max = e) then
begin
max:= a;
v:=1;
if max > b then begin max:= b; v:= 2; end;
if max > c then begin max:= c; v:= 3; end;
if max > d then begin max:= d; v:= 4; end;
if max > e then begin max:= e; v:= 5; end;
end;
write(v);
end.