а)
var s,a:integer;
begin
S:=-1;
a:=1;
while (a mod 5<>0) do
s:=s+a;
readln(a);
end;
write(s);
end.
б)
а)
var s,a:integer;
begin
S:=-1;
a:=1;
while (a mod 5<>0) do
begin
s:=s+a;
readln(a);
end;
write(s);
end.
б)
var s,a:integer;
begin
a:=1;
while (a mod 5<>0) do
begin
readln(a);
s:=s+a;
end;
write(s);
end.