Advertisement
DaniDori

Untitled

Feb 17th, 2023
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. a=int(input())
  2. c=0
  3. for i in range(a):
  4. b=int(input())
  5. if b%6==0 :
  6. c=c+b
  7. print(c)
  8.  
  9.  
  10. a=int(input())
  11. max=4
  12. for i in range(a):
  13. b=int(input())
  14. if b%10==0 or b%10==5 :
  15. if b>max :
  16. max=b
  17. print(max)
  18.  
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement