Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = [100, 400, 4, 8, 3, 15, 66, 99]
- n = 8
- S = 0
- for i in range(0, n):
- if(a[i] > 99) & (a[i] < 1000) & (a[i] % 5 == 0) & (a[i] > S):
- S = a[i]
- if S == 0:
- print("No")
- else:
- print(S)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement