Advertisement
jaodesignbr

SUBPROGRAMA FATORIAL

Jun 5th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. REAL FUNCTION FATORIAL(N)
  2. ! Locais de memória
  3.    INTEGER N
  4. ! Cálculos
  5. FAT = 1
  6.     DO I = 2,N,1
  7.     FATORIAL=FATORIAL*I
  8.     END DO
  9. END FUNCTION
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement