Pagini recente » Cod sursa (job #974093) | Cod sursa (job #46518) | Cod sursa (job #2560568) | Cod sursa (job #1779848) | Cod sursa (job #608505)
Cod sursa(job #608505)
program textulet;
var f:text;c:char;cuv,lit:longint;
begin
assign(f,'text.in');
reset(f);
while not eof(f) do
begin
read(f,c);
if upcase(c) in ['A'..'Z'] then
begin
cuv := cuv + 1;
while (upcase(c) in ['A'..'Z']) and (not eof(f)) do
begin
lit := lit + 1;
read(f,c);
end;
end;
end;
close(f);
assign(f,'text.out');
rewrite(f);
write(f,lit/cuv);
close(f);
end.