The program should ask a user to enter the equations as follows:
as this
http://up111.arabsh..../8st7teq04q.jpg
i wait you
This post has been edited by m_s_n1988: 26 March 2009  07:31 AM
Posted 26 March 2009  06:13 AM
This post has been edited by m_s_n1988: 26 March 2009  07:31 AM
Posted 26 March 2009  02:32 PM
Posted 26 March 2009  04:01 PM
x + y = d y = d  x /////////////////////////////////////////////////// Solve for x: ax + by = c ax + b(d  x) = c ax + bd  bx = c ax  bx = c  bd x(a  b) = c  bd x = c  bd / (a  b) /////////////////////////////////////////////////// Solve for y: ax + by = c by = c  ax y = c  ax / b
int main() { int a, b, c, d; int x, y; a = 2; b = 3; c = 6; d = 4; x = (c  (b * d)) / (a  b); // x = c  bd / (a  b) y = (c  (a * x)) / b; // y = c  ax / b cout << "The solution of " << a << "x+" << b << "y=" << c << " and x+y=" << d << " is " << "x=" << x << " and " << "y=" << y << endl; return 0; }
This post has been edited by bsaunders: 26 March 2009  04:08 PM
Posted 31 March 2009  02:40 PM
bsaunders, on 26 Mar, 2009  03:01 PM, said:
x + y = d y = d  x /////////////////////////////////////////////////// Solve for x: ax + by = c ax + b(d  x) = c ax + bd  bx = c ax  bx = c  bd x(a  b) = c  bd x = c  bd / (a  b) /////////////////////////////////////////////////// Solve for y: ax + by = c by = c  ax y = c  ax / b
int main() { int a, b, c, d; int x, y; a = 2; b = 3; c = 6; d = 4; x = (c  (b * d)) / (a  b); // x = c  bd / (a  b) y = (c  (a * x)) / b; // y = c  ax / b cout << "The solution of " << a << "x+" << b << "y=" << c << " and x+y=" << d << " is " << "x=" << x << " and " << "y=" << y << endl; return 0; }
Query failed: unknown local index 'forums_search_posts_main' in search request.
