public class Euklid
extends java.lang.Object
| Constructor and Description |
|---|
Euklid() |
| Modifier and Type | Method and Description |
|---|---|
static int |
ggT(int m,
int n)
ggT( m, n),
erzeugt ein Objekt der Klasse NPlusException,
falls Parameter m, n <= 0.
|
static int |
kgV(int m,
int n)
kgV( m, n),
erzeugt ein Objekt der Klasse NPlusException,
falls Parameter m, n <= 0.
|
public static int ggT(int m,
int n)
throws NPlusException
m - natuerliche Zahlen > 0n - natuerliche Zahlen > 0NPlusException - keine positive natuerliche Zahlpublic static int kgV(int m,
int n)
throws NPlusException
m - natuerliche Zahlen > 0n - natuerliche Zahlen > 0NPlusException - keine positive natuerliche Zahl