Collection of Delphi useful functions and procedures
ON THIS BLOG, DELPHI PROGRAMMERS CAN FIND FREE USEFUL FUNCTIONS AND PROCEDURES
Factorial Delphi Function
function
Fact
(
inbr
:
integer
):
integer
;
begin
if
inbr
<
1
then
Result
:=
1
else
Result
:=
inbr
*
Fact
(
inbr
-
1
) ;
end
;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment