diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index 7a570bc..750d788 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -70,6 +70,12 @@ int main() { result = logarithm(num1); printf("Result: %lf\n", result); break; + case 8: + printf("Enter base and exponent: "); + scanf("%lf %lf", &num1, &num2); + result = potential(num1, num2); + printf("Result: %lf\n", result); + break; case : printf("Exiting...\n"); break;