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

 

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

1 Expert Approved Answer
Step: 1 Unlock

Heres a C program that computes the sum of two fractions and returns the negative of the ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!