maynul67

find numbers below a given number and divisible by 3 and 5

Jul 9th, 2021
1,316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. i = int(input("enter given number:   "))
  2.  
  3. for num in range(0,i):
  4.     if num % 3 == 0 and num % 5 ==0:
  5.         print(num)
  6.  
Advertisement
Add Comment
Please, Sign In to add comment