0

Find the lowest common denominator of multiple fractions

For a personal project im trying to find a good way of finding the lowest common denominator of a list of fractions. Is there any good way to do this? (In java)

27th Feb 2020, 12:32 PM
Ruben Eekhof
Ruben Eekhof - avatar
5 Answers
+ 4
Here the principle in c#: int Gteil(int a, int b) { int rest = a % b; if (rest == 0) return b; else return Gteil(b, rest); } and here can you see an example of use: https://code.sololearn.com/cEv41IqV7eYc/?ref=app
27th Feb 2020, 4:33 PM
JaScript
JaScript - avatar
+ 3
Show your attempts
27th Feb 2020, 12:50 PM
Sumit Programmer😎😎
Sumit Programmer😎😎 - avatar
+ 3
Then try something.
27th Feb 2020, 1:20 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
Ja Play please try not to share working solutions next time. You are allowed to, but it defeats the whole purpose of this community. We are here to help, not to write code for others.
27th Feb 2020, 4:35 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
Havent tried anything yet, not sure on how to approach this.
27th Feb 2020, 12:58 PM
Ruben Eekhof
Ruben Eekhof - avatar