Can anyone help me to write a program with the problem as shown below:
Write a complete C program to perform computations with common fractions and get results that are common fractions in reduced form. Your program shoud be able to perform addition, subtraction, multiplication or division on the given two fractions of a/b where a and b are integers representing numerator and denominator respectively.
Sample input and output:
Enter the first fraction as two integers seperated by a slash> 3/4
Enter the second fraction as two integers seperated by a slash> 5/8
Enter an arithmatic operator (+,-,*,/)> +
3/4 + 5/8 = 11/8
Would you like to continue<Y/N> Y
Enter the first fraction as two integers seperated by a slash> 3/4
Enter the second fraction as two integers seperated by a slash> 5/8
Enter an arithmatic operator (+,-,*,/)> *
3/4 * 5/8 = 15/32
Would you like to continue?<Y/N> N
Bye. Bye...have a nice day!