Cod sursa(job #215844)

Utilizator squeezyAmza Bianca Ioana squeezy Data 21 octombrie 2008 15:40:33
Problema Text Scor 0
Compilator fpc Status done
Runda Arhiva de probleme Marime 0.52 kb
var
s: string;
lcuv,stot,ct: integer;
f,g: text;
begin
assign(f,'text.in');
reset(f);
assign(g,'text.out');
rewrite(g);
readln(f,s);
close(f);
ct:=1; lcuv:=0;
while ct<>length(s) do
    begin
       if ((s[ct]<='z') and (s[ct]>='a')) or ((s[ct]<='Z') and (s[ct]>='A'))
                        then begin
                               inc(lcuv);
                               inc(stot);
                              end;
             lcuv:=0;
     inc(ct);
     end;
 write(g,trunc(stot));
 close(g);
end.