Browse Source

case modulus

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

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

@ -57,6 +57,12 @@ int main() {
scanf("%lf %lf", &num1, &num2);
result = exponent(num1, num2);
printf("Result: %lf\n", result);
break;
case 6:
printf("Enter two numbers: ");
scanf("%lf %lf", &num1, &num2);
result = modulus(num1, num2);
printf("Result: %lf\n", result);
break;
case :
printf("Exiting...\n");

Loading…
Cancel
Save