Python Program to Find Numbers which are Divisible by 7 and Multiple of 5 in a Given Range

bookmark

 
lower=int(input("Enter the lower range:"))
upper=int(input("Enter the upper range:"))
for i in range (lower,upper+1):
    if(i%7==0 and i%5==0):
        print(i)

 

Output

 

Enter the lower range:1
Enter the upper range:100
35
70