From 658eada7b10618d75af9234a27f42e0930bffce4 Mon Sep 17 00:00:00 2001 From: Ulriche Nguefack Date: Wed, 7 Feb 2024 14:24:54 +0100 Subject: [PATCH] refactoring: case(for mutiply and division) --- 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 f7900d9..06be2f8 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -76,6 +76,10 @@ double combination(int n, int r); return num1 + num2; case 2: return num1 - num2; + case 3: + return num1 * num2; + case 4: + return num1 / num2;