diff --git a/src/divsion.c b/src/divsion.c index 054eaf4..ab06fbf 100644 --- a/src/divsion.c +++ b/src/divsion.c @@ -10,7 +10,12 @@ int divisionInt(int a, int b) { } double divisionDouble(double a, double b) { - return 0; + if (b != 0) { + return a / b; + } + else { + return 0; + } } int divisionByTwo(int a, int b) {