From 605d875c9022357c17bf0fe531ca62f571e9c13c Mon Sep 17 00:00:00 2001 From: Ulriche Nguefack Date: Mon, 5 Feb 2024 19:57:36 +0100 Subject: [PATCH] case 4 entry --- src/main/c/Calculator/calculator.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index 3e4ed49..8e3d350 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -26,4 +26,10 @@ switch (choice) { scanf("%d %d", &num1, &num2); result = subtract(num1, num2); printf("Result: %d\n", result); + break; + case 3: + printf("Enter two numbers: "); + scanf("%d %d", &num1, &num2); + result = multiply(num1, num2); + printf("Result: %d\n", result); break; \ No newline at end of file