From 27c6bf05102d96910ac542c64b41a45b80b1fefc Mon Sep 17 00:00:00 2001 From: Ulriche Nguefack Date: Mon, 5 Feb 2024 20:07:51 +0100 Subject: [PATCH] division operation --- src/main/c/Calculator/calculator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index eb84381..b46882a 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -72,4 +72,7 @@ int subtract(int num1, int num2) { } int multiply(int num1, int num2) { return num1 * num2; +} +int divide(int num1, int num2) { + return num1 / num2; } \ No newline at end of file