69,368
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
using namespace std;
//ax+b = 0 一元一次方程。
int main()
{
double a,b;
cout << "Please input the two parameters a and b!"<<endl;
cin >>a >> b;
double x = -b / a;
cout << "X: " << x <<endl;
}