Ask Question
30 July, 18:40

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

+5
Answers (1)
  1. 30 July, 22:29
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers