Pagini recente » Cod sursa (job #2381041) | Cod sursa (job #1655082) | Cod sursa (job #834638) | Cod sursa (job #2854202) | Cod sursa (job #867812)
Cod sursa(job #867812)
program asd;
var c,cb : char;
f : text;
lit,cuv : longint;
begin
cb := ' ';
assign(f,'text.in'); reset(f);
while not eoln(f) do begin
read(f,c);
if (cb = ' ') and (c <> ' ') then inc(cuv);
if ((c >= 'a') and (c <= 'z')) or ((c >= 'A') and (c <= 'Z'))
then inc(lit);
cb := c;
end;
close(f); assign(f,'text.out'); rewrite(f);
write(f,lit div cuv);
close(f);
end.