home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 March
/
Chip_2004-03_cd1.bin
/
software
/
slunec
/
app
/
6157_8185.exe
/
{app}
/
Pascal
/
Function
/
Function.pas
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Pascal/Delphi Source File
|
2003-11-08
|
328 b
|
15 lines
function IncludeTrailingZero(Number, ZeroCount);
begin
Str := IntToStr(Number);
for c:= 1 to ZeroCount-1 do
begin
if 10^c > Number then
Str := '0' + Str;
end
Result := Str;
end;
for a := 0 to 1000 step 50 do
Output(IncludeTrailingZero(a, 5));