SHARE
TWEET

2q(lista de ferias)

DomMisterSoja Jul 16th, 2018 (edited) 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. macas= int(input("Insira a quantidades de maças "))
  2. while(macas <=0):
  3.     macas= int(input("Insira a quantidades de maças "))
  4. if(macas<12):
  5.     preco = 0.30
  6.     valor = macas*preco
  7.     print('Sua compra deu R$:',valor)
  8. else:
  9.     preco = 0.25
  10.     valor = macas*preco
  11.     print('Sua compra deu R$:',valor)
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