From 2e4e77e8c0dccd1256cd6f41e63733e506353fba Mon Sep 17 00:00:00 2001 From: Justin Trausch Date: Wed, 7 Feb 2024 16:23:38 +0100 Subject: [PATCH] Division Integer Struktur --- src/divsion.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/divsion.c b/src/divsion.c index 6f7ea3f..054eaf4 100644 --- a/src/divsion.c +++ b/src/divsion.c @@ -1,7 +1,12 @@ #include "division.h" int divisionInt(int a, int b) { - return 0; + if (b != 0) { + return a / b; + } + else { + return 0; + } } double divisionDouble(double a, double b) {