Posted By

dfornazari on 04/24/15


Tagged


Versions (?)

ex 2-2


 / Published in: Python
 

lista 2 ex 2

  1. __author__ = '9442883'
  2. import math
  3. import time
  4.  
  5. lados = int(input("Inserir numero de lados do poligono convexo: "))
  6. diag = lados*(lados-3)/2
  7.  
  8. print "o numero de diagonais eh ", diag

Report this snippet  

You need to login to post a comment.