+ 1
How do I get this code to print a list of numbers instead of a column of numbers?
n = int(input()) def facts(n): for i in range(1,n+1): for j in range(1,n+1): if n / i == j: print(i) print(facts(n))
1 Resposta
n = int(input()) def facts(n): for i in range(1,n+1): for j in range(1,n+1): if n / i == j: print(i) print(facts(n))