Advertisement
obernardovieira

Maior numero (preenchido)

Nov 11th, 2013
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. def maiornumero(num):
  2.     a=0
  3.     for x in num:
  4.         if x>a :
  5.             a=x
  6.     return a
  7.    
  8. numeros = [4,8,2,6,3,5]
  9. maiornumero(numeros)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement