From 6f6c74e65f00a7410311ef53d805cbd006fb72b4 Mon Sep 17 00:00:00 2001 From: Ulriche Nguefack Date: Mon, 5 Feb 2024 21:31:43 +0100 Subject: [PATCH] case cubeRoot --- src/main/c/Calculator/calculator.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index 0081007..ea55d75 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -130,7 +130,12 @@ int main() { result = cube(num1); printf("Result: %lf\n", result); break; - + case 12: + printf("Enter a number: "); + scanf("%lf", &num1); + result = cubeRoot(num1); + printf("Result: %lf\n", result); + break; case : printf("Exiting...\n"); break;