Guest User

Untitled

a guest
Oct 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. a = []
  2. n = int(input())
  3. i = 0
  4. while i < n:
  5. b = int(input())
  6. a.append(b)
  7. i = i+1
  8. i =0
  9. c = 0
  10. n = len(a)
  11. while i < n:
  12. if a[i] % 3 == 0:
  13. c = c + a[i]
  14. i = i + 1
  15. print(c)
Add Comment
Please, Sign In to add comment