From 05f9aa3121498ac23fca42eb0245a32fdc31cab7 Mon Sep 17 00:00:00 2001 From: Ulriche Nguefack Date: Mon, 5 Feb 2024 21:30:11 +0100 Subject: [PATCH] case cube --- src/main/c/Calculator/calculator.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index 68e1d1f..0081007 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -123,6 +123,12 @@ int main() { scanf("%d %d", &n, &r); result = combination(n, r); printf("Combination of %d and %d: %lf\n", n, r, result); + break; + case 11: + printf("Enter a number: "); + scanf("%lf", &num1); + result = cube(num1); + printf("Result: %lf\n", result); break; case :