From 94a2d06345f2e2025720492d11b6903a0744d8c9 Mon Sep 17 00:00:00 2001 From: Justin Trausch Date: Tue, 6 Feb 2024 14:58:36 +0100 Subject: [PATCH] refactoring: Brechnung vereinfacht --- src/ProduktSumme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ProduktSumme.c b/src/ProduktSumme.c index c6fcb53..4230d5e 100644 --- a/src/ProduktSumme.c +++ b/src/ProduktSumme.c @@ -6,7 +6,7 @@ int berechneProdukt(int start, int ende) { int produkt = 1; for (int i = start; i <= ende; i++) { - produkt = produkt * i; + produkt *= i; } return 1; } \ No newline at end of file