Friday, 12 January 2018

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

Source Code :

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

    
Output :

Enter the lower limit :100
Enter the upper limit :400
105
140
175
210
245
280
315
350
385

No comments:

Post a Comment