fpc/docs/refex/ex36.pp
2005-02-14 17:13:06 +00:00

16 lines
211 B
ObjectPascal

Program Example36;
{ Program to demonstrate the Length function. }
Var S : String;
I : Integer;
begin
S:='';
for i:=1 to 10 do
begin
S:=S+'*';
Writeln (Length(S):2,' : ',s);
end;
end.