numero=int(input("Ingresa un número: "))

print(f"Los divisores de {numero} son:")
for n in range(1, numero + 1):
    if numero % n == 0:
        print(n)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: