count even num
unknown
plain_text
2 years ago
201 B
3
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...