//====================1=====================
float a, b, c;
cout<<"Введите a: ";<br>cin>>a;
cout<<"Введите b: ";<br>cin>>b;
cout<<"Введите c: ";<br>cin>>c;
float D=b*b-4*a*c;
cout<<"Ответ: ";<br>if(D>0)
cout<<"x1 = "<<(-b+sqrt(D))/2*a<<", x2 = "<<(-b-sqrt(D))/2*a;<br>else if(D==0)
cout<<"x = "<<-b/2*a;<br>else
cout<<"корней нет";<br>cout<<endl<br>
//====================2=====================
float a, b, c;
cout<<"Введите a: ";<br>cin>>a;
cout<<"Введите b: ";<br>cin>>b;
cout<<"Введите c: ";<br>cin>>c;
cout<<"Наибольшее число: <span>";
if(a>c)
if(a>b)
cout<<"a ("<<a<<")";<br>else
cout<<"b ("<<b<<")";<br>else if(c>b)
cout<<"c ("<<c<<")";<br>