SHARE
TWEET

3q(Lista de ferias)

DomMisterSoja Jul 16th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. x=0
  2. x1=[]
  3. y=0
  4.  
  5. z = int(input("Insira um numero maior que 0 e quando for para encerrar digite 0:\n"))
  6. while(z > 0):
  7.     x=x+z
  8.     x1.append(z)
  9.     y=y+1
  10.     z = int(input("Insira um numero maior que 0 e quando for para encerrar digite 0:\n"))
  11.     if(z==0):
  12.         m=x/y
  13.         print('A media aritimetica é :', m)
  14. for i in x1:
  15.     if i > m:
  16.         print('É maior que a média:',i)
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