Ask Question

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

+4
Answers (1)
  1. 10 January, 00:54
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers