(71B) Euclid Division and Fraction Addition/Multiplication
|
07-01-2016, 02:04 AM
(This post was last modified: 07-10-2016 12:42 AM by Eddie W. Shore.)
Post: #1
|
|||
|
|||
(71B) Euclid Division and Fraction Addition/Multiplication
Euclid Division – Finding the GCD
Finds the GCD (greatest common divisors) between integers M and N. The program displays a “calculating” screen while the calculation is in process. Code: Program EUCLID (143 bytes) Test 1: M=144, N=14; Result: 2 Test 2: N=14, M=144; Result: 2 Fraction Addition and Multiplication Adds or multiplies two fractions W/X and Y/Z. Gives the result in the simplest form. Proper or improper fractions only. Separate each part with a comma (W,X,Y,Z) as prompted. Code: Program FRAC (380 bytes) Test 1: 4/7 + 3/13; Input: 4,7,3,13. Result: 73/91 Test 2: 4/7 * 3/13; Input: 4,7,3,13. Result: 12/91 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)