Browse Source

case logarithm

remotes/origin/Ulrich
Ulriche Nguefack 11 months ago
parent
commit
184a0c0148
  1. 8
      src/main/c/Calculator/calculator.c

8
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:

Loading…
Cancel
Save