Académique Documents
Professionnel Documents
Culture Documents
h>
#include<conio.h>
#include <math.h>
float a, b, c, x,uno,dos,tres,cuatro,cinco,seis,siete,ocho;
main(){
printf("ingresa el coheficiente de a: ");
scanf("%f",&a);
printf("ingresa el coheficiente de b: ");
scanf("%f",&b);
printf("ingresa el coheficiente de c: ");
scanf("%f",&c);
printf("ingresa el coheficiente de x: ");
scanf("%f",&x);
uno=4*a*c;
dos=b*b;
tres=dos-uno;
cuatro=(sqrt(tres));
if(dos>uno){
printf("hay soluciones, no hay raizes negativas\n");
cinco=-b+cuatro;
seis=-b-cuatro;
if(uno>dos){
printf("no hay solucion, existen raizes es negativas"); }
getch();