Ask Question
15 June, 09:49

Write a programto add two fractions and display the

result fraction. Your programwill

prompt the user to input fraction 1 and fraction 2. The

numerator and denominator of each

fraction are input separately by space

+1
Answers (1)
  1. 15 June, 10:48
    0
    Program to add two fractions

    Add two fraction a/b and c/d and print answer in simplest form.

    Examples:

    Input: 1/2 + 3/2

    Output: 2/1

    Input: 1/3 + 3/9

    Output: 2/3

    Input: 1/5 + 3/15

    Output: 2/5
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a programto add two fractions and display the result fraction. Your programwill prompt the user to input fraction 1 and fraction 2. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers