помогите пожалуйста найти ошибку
ax^+bx+c=0 описать программу
#include <iostream>;
#include <stdio.h>;
#include <math.h>;
using namespace std;

int main() {
int a,b,c,d,x1,x2;
cout<<"a,b.c:"<<endl;
cin>>a>>b>>c;

D:=b*b-4*a*c;
if(d>=0);
{(x1:=(-b+sgrt(d))/(2*a);
x2:=(-b-sgrt(d))/(2*a)};
cout<<"double root:"<<endl;
cin>>double root>>;
else
if(d<=0);
cout<<"not root:"<<endl;
cin>>notroot>>;
else
if(d=0);
{(x1:(-b/2*a)};
cout<<"one root:"<<endl;
cin>>one root>>;
else
getchar();
return 0;
}​
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.