Ministério da Educação
Brasil um país de todos
Personal tools
You are here: Home Members Cicero Garrozi Disciplinas 2014 em diante Introdução à Programação Arquivos 2014-2 Algoritmos slides05-for-ex1.py
Navigation
Log in


Forgot your password?
 
Document Actions

slides05-for-ex1.py

by Cicero Garrozi last modified 2014-04-29 07:03

Click here to get the file

Size 1 kB - File type text/python-source

File contents

for i in range(10):
    n = input("Digite a quantidade de pedidos do %do vendedor: "%(i+1))
    print "Comissao: ",
    if n <= 19:
        print "10%"
    elif n >= 20 and n < 50:
        print "15%"
    elif n >= 50 and n < 75:
        print "20%"
    else:
        print "25%"
        

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: