From 00dd15d17f06bcb664f901aceb00358bb070cd1e Mon Sep 17 00:00:00 2001 From: Ulriche Nguefack Date: Mon, 5 Feb 2024 20:05:34 +0100 Subject: [PATCH] addition 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 2a41295..4032bbc 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -62,4 +62,7 @@ void displayMenu() { printf("3. Multiply\n"); printf("4. Divide\n"); printf("5. Exit\n"); +} +int add(int num1, int num2) { + return num1 + num2; } \ No newline at end of file