## Description

write a program which accepts 2 rational numbers from the keyboard.,each in the form a,b and c,d where a b is a/b

and c d is c/dexample ENTER a rational number:3 5Enter a second number::2 9Check that the denominators are not =0Write 4

functions called adds, subs, divs and mult. The main procedure callseach function and passes the 2 rational numbers,

and also 2 reference variables that willhold the result of the computation.The main program then produces output for

each pair as follows:a/b + c/d = x/y and also in double format n.nnna/b / c/d = x/y and also in double format n.

nnnexample 5/6 + 2/3 = 10/6 1.6665/6 / 2/3 = 15/12 1.251/3 * 2/3 = 2/9 0.222extra credit for reducing fractions

2/4 –> 1/2and simplifying 8/5 –> 1 3/5Use the following data 3, 8 and 3, 55, 9 and 2, 3