From 2088b143b6b6f4e2ac2e1b5fb9364a7781641521 Mon Sep 17 00:00:00 2001 From: Enrico Schellenberger Date: Wed, 31 Jan 2024 11:33:20 +0100 Subject: [PATCH] added multiply 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 9727e18..cec5d6f 100644 --- a/src/main/c/main_taschenrechner.c +++ b/src/main/c/main_taschenrechner.c @@ -14,3 +14,7 @@ int add(int a, int b) { int minus (int a, int b){ return a - b; } + +int multiply(int a, int b) { + return a * b; +} diff --git a/src/main/c/taschenrechner.h b/src/main/c/taschenrechner.h index 0ebc004..e1ca752 100644 --- a/src/main/c/taschenrechner.h +++ b/src/main/c/taschenrechner.h @@ -5,4 +5,6 @@ int add(int a, int b); int minus(int a, int b); +int multiply(int a, int b); + #endif // TASCHENRECHNER_H