Question: Code a program in the programming language C++, that computes the sum of two fractions x1/y1 and x2/y2 (the inputs) by evaluating: +42122 =

Code a program in the programming language C++, that computes the sum of two fractions x1/y1 and x2/y2 (the inputs) by evaluating: +42122 = zl.y2+x2.yl yl.y2 and returning z as an output. In this fractions, and y are positive integer parameters. Input The first line contains four integers x1, yl, x2 and y2. yl Output Print a single integer output-2. Examples Input 10 2 15 5 Output
Step by Step Solution
There are 3 Steps involved in it
Heres a C program that computes the sum of two fractions and returns the negative of the ... View full answer
Get step-by-step solutions from verified subject matter experts
