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

Loading…
Cancel
Save