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)
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