#include <iostream>
#include <cmath>
using namespace std;
int delta(){
int a, b,c;
cout<<"Podaj a: ";
cin>>a;
cout<<"Podaj b: ";
cin>>b;
cout<<"Podaj c: ";
cin>>c;
float D = b*b - (4*a*c);
if (D>0){
float P = sqrt(D);
float x1 = (b*(-1)-P)/(2*a);
float x2 = (-1*(b)+P)/(2*a);
cout<<"x1 = "<<x1<<", x2 = "<<x2;
}
else if (D<0){
cout<<"Brak rozwiązań";
}
else{
float x0 = -(b)/(2*a);
cout<<"x0 = "<<x0;
}
}
int main(){
delta();
return 0;
}