Browse Source

additional operations

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

5
src/main/c/Calculator/calculator.c

@ -6,6 +6,11 @@ int add(int num1, int num2);
int subtract(int num1, int num2); int subtract(int num1, int num2);
int multiply(int num1, int num2); int multiply(int num1, int num2);
int divide(int num1, int num2); int divide(int num1, int num2);
double exponent(double base, double exponent);
double modulus(double num1, double num2);
double logarithm(double num);
double potential(double base, double exponent);
double squareRoot(double num);
int main() { int main() {
int choice, num1, num2, result; int choice, num1, num2, result;

Loading…
Cancel
Save