maynul67

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

Jul 9th, 2021
1,195
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
RAW Paste Data