TOPIC

Problema 1153

matheusLIP asked 6 years ago

N = int(input())

N_fat = 1

for i in range(2,N+1): N_fat = N_fat * i print("%d %d" %(N, N_fat))

esta dando erro 100% qual seria o problema?

Remember not post solutions. Your post may be reviewed by our moderators.

  • cleiton_tc replied 6 years ago

    "A saída contém um valor inteiro, correspondente ao fatorial de N."

    Você está imprimindo dois valores inteiros, por isso o erro.