print("Ingrese el primer número")
a = int(input())
print("Ingrese el segundo número")
b = int(input())

menor = min(a, b)
mayor = max(a, b)

i = menor + 1

print(f"Números pares entre {a} y {b}:")
while i < mayor:
    if i % 2 == 0:
        print(i)
    i += 1

Embed on website

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