Advertisement
lucast0rres

Lista4 - 10

May 18th, 2016
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. faturamento = 0
  2. preco = []
  3.  
  4. for j in xrange(5):
  5.     x = input("Digite o preco de venda da mercadoria n." + str(j) +": ")
  6.     preco.insert(j, x)
  7.  
  8. for j in xrange(5):
  9.     n = input("Digite a quantidade vendida da mercadoria n." + str(j) +": ")
  10.     faturamento += n*(preco[j])
  11.  
  12. print "O faturamento eh: ", faturamento
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement