Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  сохранить
Language: C/C++
Code:
#include <stdio.h>
#include<math.h>
float a,b,c, x,x1,x2
void main(void)
{
prit f("enter a,b,c,")
scan f ("%f%f%f",&a,&b,&c),
if(a==0)
{
if(b==0)
{
if(c==0)
print f ("x-Any number");
}
else
{
print f ("no roots");
};<}
else
{
if(c==0)
{
print f("x=",x);
};
};
else
{
if(D>0)
x1=(-b+sgrt(D))((2+a);
print f (,,x1"="X1);
print f(,,x2"=x2");
else
{
if(D==0)
{
x=-b((2a);
print f("x1"=x1");
else
{print f ("noots");
}
}
retyrn(0)
}






          
          
Comments: