Browse Source

case potential

remotes/origin/Ulrich
Ulriche Nguefack 11 months ago
parent
commit
c0a83ef147
  1. 6
      src/main/c/Calculator/calculator.c

6
src/main/c/Calculator/calculator.c

@ -70,6 +70,12 @@ int main() {
result = logarithm(num1); result = logarithm(num1);
printf("Result: %lf\n", result); printf("Result: %lf\n", result);
break; break;
case 8:
printf("Enter base and exponent: ");
scanf("%lf %lf", &num1, &num2);
result = potential(num1, num2);
printf("Result: %lf\n", result);
break;
case : case :
printf("Exiting...\n"); printf("Exiting...\n");
break; break;

Loading…
Cancel
Save