]> git.uio.no Git - u/mrichter/AliRoot.git/blob - GEANT321/gheisha/nfac.F
This commit was generated by cvs2svn to compensate for changes in r2,
[u/mrichter/AliRoot.git] / GEANT321 / gheisha / nfac.F
1 *
2 * $Id$
3 *
4 * $Log$
5 * Revision 1.1.1.1  1995/10/24 10:20:58  cernlib
6 * Geant
7 *
8 *
9 #include "geant321/pilot.h"
10 *CMZ :  3.21/02 29/03/94  15.41.38  by  S.Giani
11 *-- Author :
12       INTEGER FUNCTION NFAC(N)
13 C
14 C *** NVE 16-MAR-1988 CERN GENEVA ***
15 C
16 C ORIGIN : H.FESEFELDT (27-OCT-1983)
17 C
18       NFAC=1.
19       M=N
20       IF(M.LE.1) RETURN
21       IF(M.GT.10) M=10
22       DO 1 I=2,M
23     1 NFAC=NFAC*I
24       RETURN
25       END