Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a=[]
- n = 3
- for i in range(0,n):
- a.append(int(input()))
- max1 = -32767
- for i in range(0,n):
- if a[i] > max1:
- max2 = max1
- max1 = a[i]
- if a[i]!=max1 and a[i]>max2:
- max2 = a[i]
- print(max2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement