Advertisement
Guest User

Untitled

a guest
Oct 12th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. x = True
  2. a = []
  3. index = 0
  4.  
  5. while x:
  6.     getal = int(input())
  7.     if (getal >= 0 and getal < 100):
  8.         a.append(getal)
  9.     else:
  10.         x = False
  11.  
  12. getal = 0
  13.  
  14. while index < len(a):
  15.     if a[index] > getal:
  16.         getal = a[index]
  17.     index += 1
  18.  
  19. print(getal)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement