From 184a0c01481171a33127db3292e060b93ab0d99a Mon Sep 17 00:00:00 2001 From: Ulriche Nguefack Date: Mon, 5 Feb 2024 20:54:13 +0100 Subject: [PATCH] case logarithm --- src/main/c/Calculator/calculator.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index b7f10ce..7a570bc 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -64,7 +64,13 @@ int main() { result = modulus(num1, num2); printf("Result: %lf\n", result); break; - case : + case 7: + printf("Enter a number: "); + scanf("%lf", &num1); + result = logarithm(num1); + printf("Result: %lf\n", result); + break; + case : printf("Exiting...\n"); break; default: