knyazer

Untitled

Mar 20th, 2020
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. inp = int(input())
  2. old = 0
  3. mx = 0
  4.  
  5. while inp != 0:
  6.     if old * inp > mx: mx = old * inp
  7.     old = inp
  8.     inp = int(input())
  9.  
  10. print(mx)
Advertisement
Add Comment
Please, Sign In to add comment