diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index da9d5f1..b7f10ce 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -57,6 +57,12 @@ int main() { scanf("%lf %lf", &num1, &num2); result = exponent(num1, num2); printf("Result: %lf\n", result); + break; + case 6: + printf("Enter two numbers: "); + scanf("%lf %lf", &num1, &num2); + result = modulus(num1, num2); + printf("Result: %lf\n", result); break; case : printf("Exiting...\n");