#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; }
70,020
社区成员
243,264
社区内容
加载中
试试用AI创作助手写篇文章吧