summaryrefslogtreecommitdiff
path: root/fpcdocs/refex/ex68.pp
blob: 3b95ba1d5ec262f2ac66e5885ed459bfe3f86c6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Program Example68;

{ Program to demonstrate the Str function. }
Var S : String;

Function IntToStr (I : Longint) : String;

Var S : String;

begin
 Str (I,S);
 IntToStr:=S;
end;

begin
  S:='*'+IntToStr(-233)+'*';
  Writeln (S);
end.