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)
5 ответов
+ 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
+ 3
Show your attempts
+ 3
Then try something.
+ 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.
0
Havent tried anything yet, not sure on how to approach this.