generate functionFri, 05 May 2023

construya un algoritmo que dados como datos de la base y la altura de un triangulo, calcule e imprima el perimetro y el area

def triangle(base, height): perimeter = 2 * base + height area = base * height / 2 return (perimeter, area) triangle(3, 4)

Questions about programming?Chat with your personal AI assistant