Question: Write a C++ program to add two fractions a display the result fraction. Your program will prompt the user to input fraction 1 and fraction

Write a C++ program to add two fractions a display the result fraction. Your program will prompt the user to input fraction 1 and fraction 2. Each fraction is in the form of two numbers: numerator and denominator of each fraction. Use this definition of struct and function: struct Fract { int num; int deno; }; Fract sum (Fract, Fract); Sample Run: Enter fraction 1 (numerator denominator): 1 2 Enter fraction 2 (numerator denominator): 2 5 Result: 9/10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
