Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

PROGRAM N_FAKTORIEL

IMPLICIT REAL(A-H,O-Z)

100

WRITE(*,*)'N='
READ(*,100)N
FORMAT(I5)
IRF=1
I=1
IRF=IRF*I
I=I+1
IF(I-N)5,5,10

10
200

WRITE(*,200)N,IRF
FORMAT(I5,'! =',I5)
END

You might also like