Problem statement:
In this project you are asked to write a program that solves two linear equations in two variables.
The program should ask a user to enter the equations as follows:
_____________________________
Enter the first equation:
2x + 3y = 6
Enter the second equation:
x + y = 4
The solution is:
X = 6
Y = ‐2
Press any key to continue…..
________________________________
Hints:
a. You may need some parsing steps in order to solve the problem
b. Your program should deal with equations with zero‐coefficient variables, e.g. x = 5 or y = 2
c. You may need some knowledge of matrix operations
__________________________________
محاولتي :
include<iostreaml.h>#
include<stdlib.h>
void main ()
}
int x,y;
cout<<"Enter the first equation";
cin>>x=>>y=;
cout<<x=<<y=<<x+y<<endl;
cout<<"Enter the second equation:";
cin>>x>>y>>;
cout<<"The solution is:";
cout<<x<<y<<endl;
{
