count even num
Anonymous
plain_text
04/21/2023 4:05 PM
268 B
17
Indexable
a=int(input("a="))
b=int(input("b="))
count=0
if a!=0 and a<b:
for i in range (a,b+1):
if i % 2 == 0:
count+=1
print("the number of even values from a to b :", count)Editor is loading...