From a5b176f4f070e5b930f695c3a031f150f86d4e65 Mon Sep 17 00:00:00 2001 From: "aurelien.lohmann" Date: Wed, 30 Mar 2022 08:47:12 +0200 Subject: [PATCH] added arithmetic code --- arithmetic.cpp | 7 +++++++ arithmetic.h | 1 + 2 files changed, 8 insertions(+) create mode 100644 arithmetic.cpp create mode 100644 arithmetic.h diff --git a/arithmetic.cpp b/arithmetic.cpp new file mode 100644 index 0000000..d6bcd30 --- /dev/null +++ b/arithmetic.cpp @@ -0,0 +1,7 @@ + +#include "arithmetic.h" +int add(int a, int b) +{ +int c = a + b; +return c; +} diff --git a/arithmetic.h b/arithmetic.h new file mode 100644 index 0000000..c718493 --- /dev/null +++ b/arithmetic.h @@ -0,0 +1 @@ +int add(int, int);