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); result = modulus(num1, num2);
printf("Result: %lf\n", result); printf("Result: %lf\n", result);
break; break;
case :
case 7:
printf("Enter a number: ");
scanf("%lf", &num1);
result = logarithm(num1);
printf("Result: %lf\n", result);
break;
case :
printf("Exiting...\n"); printf("Exiting...\n");
break; break;
default: default:

Loading…
Cancel
Save