Program HOC24;
var z,i,d: integer;
t: real;
begin
write('Nhap z: '); readln(z);
t:=0; d:=0;
for i:=1 to z do if i mod 5=0 then begin t:=t+i; d:=d+1; end;
t:=t/d;
write('Trung binh cong cac so chia het cho 5 trong khoang 1 den ',z,' la: ',t:6:2);
readln
end.