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 2016-1 Algoritmos slides13-ex1--triangulo--programaPrincipal.py
Navigation
Log in


Forgot your password?
 
Document Actions

slides13-ex1--triangulo--programaPrincipal.py

by Cicero Garrozi last modified 2014-07-11 05:10

Click here to get the file

Size 1 kB - File type text/python-source

File contents

from slides13ex1 import *

a = input("Digite o lado A do triangulo: ")
b = input("Digite o lado B do triangulo: ")
c = input("Digite o lado C do triangulo: ")

t = Triangulo(a, b, c)
print "O perimetro do triangulo é %.2f e o maior lado é %.2f"%(t.calcularPerimetro(), t.getMaiorLado())

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: