Browse Source

case cubeRoot

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

7
src/main/c/Calculator/calculator.c

@ -130,7 +130,12 @@ int main() {
result = cube(num1);
printf("Result: %lf\n", result);
break;
case 12:
printf("Enter a number: ");
scanf("%lf", &num1);
result = cubeRoot(num1);
printf("Result: %lf\n", result);
break;
case :
printf("Exiting...\n");
break;

Loading…
Cancel
Save