man in white dress shirt sitting on black rolling chair while facing black computer set and smiling
COMPARTE ESTE ARTÍCULO

Por aquí dejo mi código de ecuación de segundo grado en Python:

import math
def ecuacion_segundo_grado(a, b, c):
    operacion=(b*b)-(4*a*c)
    operacion=math.sqrt(operacion)
    op1=(-b+operacion)/(2*a)
    op2=(-b-operacion)/(2*a)
    print("La operacion 1 es "+str(op1)+" La operacion 2 es "+str(op2))

a=float(input("Dígame el primer número\n"))
b=float(input("Dígame el segundo número\n"))
c=float(input("Dígame el tercer número\n"))
# 1 -5 6
ecuacion_segundo_grado(a, b, c)
man in white dress shirt sitting on black rolling chair while facing black computer set and smiling
Photo by Andrea Piacquadio on Pexels.com



NUESTRAS ÚLTIMAS PUBLICACIONES


Contenido restringido

Acceso de usuarios existentes
   
Registro de un nuevo usuario
*Campo necesario

Tags:

Comments are closed

Estado de acceso
ESTADO DE ACCESO
TRADUCTORES
COMPARTENOS
error: CONTENIDO PROTEGIDO