Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main():
- qtd = int(input("Informe a quantidade: "))
- valor = 2
- i = 1
- dia = 0
- maior = 0
- while i <= 5:
- maior = qtd
- i = i + 1
- qtd = int(input("Informe a quantidade: "))
- # Só exibe a qtde. quando a qtide é menor que o maior.
- if maior > qtd:
- maior_qtd = maior
- dia = i - 1
- maior_venda = maior_qtd * valor
- print("A maior venda foi {} ".format(maior_qtd))
- print("O valor da maior venda foi {}R$ ".format(maior_venda))
- print("A maior venda foi no dia {}/3".format(dia))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement