SHARE
TWEET

Hello

a guest Apr 25th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a = [100, 400, 4, 8, 3, 15, 66, 99]
  2. n = 8
  3. S = 0
  4.  
  5. for i in range(0, n):
  6.     if(a[i] > 99) & (a[i] < 1000) & (a[i] % 5 == 0) & (a[i] > S):
  7.         S = a[i]
  8. if S == 0:
  9.     print("No")
  10. else:
  11.     print(S)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top