<filename>Python/Experimentos/Fatorial/Resultados/Casos especiais/fatNTRright-to-fatIT.pyw
#Fatorial Recursivo nao caudal com operacao de cauda aa direita
from datetime import datetime
import sys
sys.setrecursionlimit(100000)

def fatNTR(n, acc=1):
    while not  n < 2:
        n,acc = n - 1, acc*n
    return acc 


def main():
    start =datetime.now()
    n=188
    print(fatNTR(n))
    end =datetime.now()
    elapsed=end-start
    print('Elapsed time: (hh:mm:ss.ms) {}'.format(elapsed))



main()










<filename>Python/Experimentos/Fatorial/Resultados/Casos especiais/fatNTRright-to-fatIT.pyw
#Fatorial Recursivo nao caudal com operacao de cauda aa direita
from datetime import datetime
import sys
sys.setrecursionlimit(100000)

def fatNTR(n, acc=1):
    while not  n < 2:
        n,acc = n - 1, acc*n
    return acc 


def main():
    start =datetime.now()
    n=188
    print(fatNTR(n))
    end =datetime.now()
    elapsed=end-start
    print('Elapsed time: (hh:mm:ss.ms) {}'.format(elapsed))



main()










#Fatorial Recursivo nao caudal com operacao de cauda aa direita