...ggt(int lhs, int rhs)
{
if (lhs == rhs || rhs == 0) return lhs;
else return ggt(rhs, lhs % rhs);
}
static int kgv(int lhs, int rhs)
{
return (lhs * rhs) / ggt(lhs, rhs);
}
Denke mal, dass meine Überlegungen soweit richtig sind.
Mein Problem ist nun: Wie implementiere ich das in EINE...