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) {