Ok I have been working on this for a while and little by little and with the help of you guys for one section I wrote this code so far. I wrote this to output a fraction in its lowest form and came up with a greatest common denominator function to use with my other function to get the answer. so far I added the new function and added it into my addition function and when I tested it out my output is giving my 1/0 for my answer every time. for example i enter my fractions and instead of 6/12 + 3/12 = 9/12 which is 3/4 in lowest form i get 1/0 for lowest form for everything. Here is the part of my code I'm working on so I can add it to the rest of my fucntions. I'm hoping a fresh set of eyes will help me. Thank you in advance.
Your GCD function is flawed. If you were to input 9/12, first it would take the remainder of 9 and 12, which is 3. Then it would make the numerator the current denominator (12) and the denominator the remainder (3). It would then repeat, making the numerator 3 and the denominator 0, and then exit. Thus, when you divide the numerator by the GCD, you would obtain 1. When you divide the denominator, you would obtain 0. Hence the answers of 1/0.