Find Number

8. Write a python program to find those numbers which are divisible by 7 and multiple of 5, between 1500 and 2700

# Solution:
n1=[]
for x in range(1500, 2700):
    if (x%7==0) and (x%5==0):
        n1.append(x)
print(n1)


No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...