你该说明用什么程序!(比如 vb 的?c# 的?FORTRAN 的?)
下面是复制自网页 http://tieba.baidu.com/p/192822508 是c++ 的。
#include "iostream.h"
int main()
{
float a,b,c,d,e,f;
cout<
cout<
cin>>a;
cout<
cin>>b;
cout<
cin>>c;
cout<
cin>>d;
cout<
cin>>e;
cout<
cin>>f;
if(a*e==b*d)
{
cout<
}
else
{
cout<
cout<
}
return 0;
}
下面复制自 http://zhidao.baidu.com/link?url=1FpA_OyTE4idlHgIusTDn9Lvu57WFRqM2Dc_XkqX5VgfL6mdu351-eFWVGBBMJu1mXl0ZIl2lqbYOxvHifp57q 是一个qbasic的
Cls
Input "Please input the A1 B1 C1 of A1x+B1y+C1=0";a1,b1,c1
Input "Please input the A2 B2 C2 of A2x+B2y+C2=0";a2,b2,c2
If (A1*B2-A2*B1=0) or (A1*B2-A2*B1=0) then
Print "The input is error!"
Else
Print "x=";(B1*C2-B2*C1)/(A1*B2-A2*B1)
Print "y=";(A1*C2-A2*C1)/(B1*A2-B2*A1)
End if
End
你自己也可以用你的需要作《搜索条件》在网上【搜】一下。
比如[c语言解二元一次方程组程序]。