Pagini recente » Cod sursa (job #3166590) | Cod sursa (job #2685188) | Cod sursa (job #2633096) | Cod sursa (job #1456272) | 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.