ok dzięki tutaj poprawiony
#include <iostream>
using namespace std;
double a, b, c, d, e, f, W, Wx, Wy, x, y;
int main()
{
cout << "Podaj a: " << endl;
cin>>a;
cout << "Podaj b: " << endl;
cin>>b;
cout << "Podaj c: " << endl;
cin>>c;
cout << "Podaj d: " << endl;
cin>>d;
cout << "Podaj e: " << endl;
cin>>e;
cout << "Podaj f: " << endl;
cin>>f;
W=(a*e)-(d*b);
Wx=(c*e)-(b*f);
Wy=(a*f)-(d*c);
if (W!=0)
{
x=Wx/W;
y=Wy/W;
}
else if (Wx==0)
{
cout<<" Nieoznaczony ";
}
else
cout<< "Sprzeczny ";
cout<< "X = "<<x<< " Y = "<< y<<endl;
return 0;
}