Browse Source

case sqaureRoot

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

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

@ -75,6 +75,12 @@ int main() {
scanf("%lf %lf", &num1, &num2); scanf("%lf %lf", &num1, &num2);
result = potential(num1, num2); result = potential(num1, num2);
printf("Result: %lf\n", result); printf("Result: %lf\n", result);
break;
case 9:
printf("Enter a number: ");
scanf("%lf", &num1);
result = squareRoot(num1);
printf("Result: %lf\n", result);
break; break;
case : case :
printf("Exiting...\n"); printf("Exiting...\n");

Loading…
Cancel
Save