From 7c7e43a11f43f909d45ef5ccc394498d55d73a18 Mon Sep 17 00:00:00 2001 From: Enrico Schellenberger Date: Wed, 31 Jan 2024 11:24:49 +0100 Subject: [PATCH] added minus function --- src/main/c/main_taschenrechner.c | 4 ++++ src/main/c/taschenrechner.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/main/c/main_taschenrechner.c b/src/main/c/main_taschenrechner.c index 79ece02..9727e18 100644 --- a/src/main/c/main_taschenrechner.c +++ b/src/main/c/main_taschenrechner.c @@ -10,3 +10,7 @@ int add(int a, int b) { return a+b; } + +int minus (int a, int b){ + return a - b; +} diff --git a/src/main/c/taschenrechner.h b/src/main/c/taschenrechner.h index 1261fd7..0ebc004 100644 --- a/src/main/c/taschenrechner.h +++ b/src/main/c/taschenrechner.h @@ -3,4 +3,6 @@ int add(int a, int b); +int minus(int a, int b); + #endif // TASCHENRECHNER_H