diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index b25d868..2cc9319 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -82,6 +82,12 @@ int main() { result = squareRoot(num1); printf("Result: %lf\n", result); break; + case 10: + printf("Enter a number: "); + scanf("%lf", &num1); + result = square(num1); + printf("Result: %lf\n", result); + break; case : printf("Exiting...\n"); break;