From 7becd9e0b05370f23db063e04ff7137437969e28 Mon Sep 17 00:00:00 2001 From: Ulriche Nguefack Date: Mon, 5 Feb 2024 20:06:37 +0100 Subject: [PATCH] subtraction operation --- src/main/c/Calculator/calculator.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index 4032bbc..954d1da 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -65,4 +65,8 @@ void displayMenu() { } int add(int num1, int num2) { return num1 + num2; +} + +int subtract(int num1, int num2) { + return num1 - num2; } \ No newline at end of file