Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. max = -1
  2. for i in range(0, n):
  3.     if a[i] >= 100 and a[i] <= 999 and a[i] % 5 == 0 and a[i] > max:
  4.         max = a[i]
  5. if max != -1: print(max)
  6. else: print("Не найдено")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement