No Description

Marina Barsky 8dbfab737b Update 'README.md' 1 year ago
.gitignore 5c4e88b2af Initial commit 1 year ago
LICENSE 5c4e88b2af Initial commit 1 year ago
README.md 8dbfab737b Update 'README.md' 1 year ago

README.md

Add fractions

Exercise 31

Write a C program to add two fractions and display the result fraction. Your program will prompt the user to input fraction 1 and fraction 2. The numerator and denominator of each fraction are printed separated by space.

See two sample runs below:

Enter fraction 1(numerator denominator): 1 2 
Enter fraction 2(numerator denominator): 2 5 
Result: 9/10 
Enter fraction 1(numerator denominator): 2 15 
Enter fraction 2(numerator denominator): 1 5
Result: 1/3