fork download
  1. #include<iostream>
  2. #include<bits/stdc++.h>
  3.  
  4. using namespace std;
  5. int main()
  6. {
  7. double a,b,x,y;
  8. cin>>a>>b;
  9. y=a*x+b;
  10. //x=(y-b)/a;
  11.  
  12. if((y==0)&&(a==0)&&(b==0))
  13. cout<<"nieskonczenie wiele"<<endl;
  14. if((y==0)&&(x!=0)&&(a!=0))
  15. cout<<(y-b)/a<<endl;
  16. if(y!=0)
  17. cout<<"brak"<<endl;
  18.  
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Standard output is empty