From 3b4ac06707a06cd4ae197187d4ef84d05994a0ef 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