Advertisement
DerioFT

1132.py

Oct 26th, 2021
846
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. X = int(input())
  2. Y = int(input())
  3.  
  4. addition = 0
  5.  
  6. if X > Y:
  7.     for data in range(Y, X + 1):
  8.  
  9.         if data % 13 != 0:
  10.             addition += data
  11.  
  12.     print(addition)
  13.  
  14. if Y > X:
  15.     for data in range(X, Y + 1):
  16.  
  17.         if data % 13 != 0:
  18.             addition += data
  19.  
  20.     print(addition)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement