2 câu trả lời
//ax+b=0
#include<iostream>
using namespace std;
int main(){
float a,b,x;
cin>>a>>b;
if(a==0){
cout<<"Phuong trinh vo nghiem";
}else if(b==0){
cout<<"Phuong trinh vo so nghiem";
}else{
x = (0-b)/a;
cout<x;
}
}
//ax+b=0
#include<iostream>
using namespace std;
int main(){
float a,b,x;
cin>>a>>b;
if(a==0){
cout<<"Phuong trinh vo nghiem";
}else if(b==0){
cout<<"Phuong trinh vo so nghiem";
}else{
x = (0-b)/a;
cout<x;
}
}