Posted By

dfornazari on 04/24/15


Tagged


Versions (?)

ex 2-1


 / Published in: Python
 

lista 2 ex 1

  1. __author__ = '9442883'
  2. import math
  3. import time
  4.  
  5. sal = float(input("Inserir Salario: "))
  6. con1 = float(input("Inserir valor da conta 1: "))
  7. con2 = float(input("Inserir valor da conta 2: "))
  8.  
  9. res = con1*1.002 + con2*1.002
  10.  
  11. print "O restante do salario eh: R$" + str(round((sal-res),2))

Report this snippet  

You need to login to post a comment.