Pagini recente » Cod sursa (job #3250162) | Cod sursa (job #2469960) | Cod sursa (job #2755180) | Cod sursa (job #2346595) | Cod sursa (job #763139)
Cod sursa(job #763139)
program textsdfg;
var f,g:text;
c:char;
s,p,t:longint;
begin
t:=0;
assign(f,'text.in');reset(f);
assign(g,'text.out');rewrite(g);
while not eof(f) do begin
read(f,c);
if ((c>='a')and(c<='z'))or((c>='A')and(c<='Z')) then begin s:=s+1; t:=0;end
else t:=t+1;
if (s>0)and(t=1) then p:=p+1;
end;
write(g,trunc(s/p));
close(f);
close(g);
end.