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