diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index 08943bd..3e4ed49 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -21,4 +21,9 @@ switch (choice) { result = add(num1, num2); printf("Result: %d\n", result); break; - \ No newline at end of file + 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