Paste Search Dynamic
Recent pastes
count
  1. # your code goes here
  2. N = int(input())
  3. count = 0
  4. for i in range (1, N+1):
  5.         if (i % 3 == 0 or i % 5 == 0):
  6.                 count+=1
  7.  
  8. print(count)
Parsed in 0.000 seconds