Program Mencari Persamaan Linier C++
#include<iostream> #include<conio.h> using namespace std; main() { int x[3],y[3],z[3]; float hz,hy,hx,hslx,hsly; cout<<"Mencari Persamaan Linier\ndengan bentuk :\n"; cout<<"x1 + y1 = z1\n"; cout<<"x2 + y2 = z2\n"; cout<<"========================\n"; for(int i=1;i<3;i++) { cout<<"Masukkan Nilai x"<<i<<" : ";cin>>x[i]; cout<<"Masukkan Nilai y"<<i<<" : ";cin>>y[i]; cout<<"Masukkan Nilai z"<<i<<" : ";cin>>z[i]; } cout<<"\nSehingga menjadi :\n"; cout<<x[1]<<"x + "<<y[1]<<"y = "<<z[1]<<"\n"; cout<<x[2]<<"x + "<<y[2]<<"y = "<<z[2]<<"\n"; if(x[1] == x[2]) { int m; hy= y[1]-y[2]; h...