diff --git a/src/ProduktSumme.c b/src/ProduktSumme.c index 21a1ca8..0d3db9e 100644 --- a/src/ProduktSumme.c +++ b/src/ProduktSumme.c @@ -8,5 +8,12 @@ int berechneProdukt(int start, int ende) { for (int i = start; i <= ende; i++) { produkt *= i; } + for (int j = start; j <= ende; j++) { + for (int k = start; k <= ende; k++) { + for (int g = k; g <= ende; g++){ + produkt *= j + k -g; + } + } + } return produkt; } \ No newline at end of file