Hello guys, I have difficulties generating a code for this question.
Input two positive integers x and y. Assume y is bigger than x.
Prints the even numbers between x and y (inclusive)
Print the word “End” before the program ends.
what I did was to create this code but it doesn’t work. Appreciate if someone can help me.
x=input(int("Enter x: "))
y=input(int("Enter y: "))
for i in range(x,y+1):
if i % 2==0:
print(f"{i} is Even")
print(“End”)