diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index 871b8b5..86dcaec 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -14,4 +14,16 @@ int main() { displayMenu(); printf("Enter your choice: "); scanf("%d", &choice); -switch (choice) { \ No newline at end of file +switch (choice) { + case 1: + printf("Enter two numbers: "); + scanf("%d %d", &num1, &num2); + result = add(num1, num2); + printf("Result: %d\n", result); + break; + case 2: + printf("Enter two numbers: "); + scanf("%d %d", &num1, &num2); + result = subtract(num1, num2); + printf("Result: %d\n", result); + break; \ No newline at end of file