Documento (11).docx

  • Uploaded by: dimitrio ena
  • 0
  • 0
  • October 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Documento (11).docx as PDF for free.

More details

  • Words: 50
  • Pages: 1
#include <stdio.h> #include <math.h> int main() { float a,b,c; printf("Ingresa coeficiente cuadratico\n"); scanf("%f",&a); printf("Ingresa coeficiente lineal\n"); scanf("%f",&b); printf("Ingresa constante\n"); scanf("%f",&c); double disc=pow(b,2)-4*a*c; if(a!=0){ if(disc<0){ printf("Tiene raices imaginarias"); }else{ double x1=(-b+sqrt(disc))/(2*a); double x2=(-b-sqrt(disc))/(2*a); printf("X1 = %lf X2 =%lf",x1,x2); } }else{ printf("El coeficiente cuadratico debe ser diferente de 0"); } return 0;

Related Documents

Documento
May 2020 29
Documento
November 2019 45
Documento.
October 2019 41
Documento
October 2019 38
Documento
December 2019 38
Documento
November 2019 40

More Documents from ""

12 Practica.docx
April 2020 19
Documento (11).docx
October 2019 20
Ejercicios Cinematica.pdf
November 2019 88
April 2020 16