Browse Source

start point data type modification

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

11
src/main/c/Calculator/calculator.c

@ -2,10 +2,10 @@
// Function prototypes // Function prototypes
void displayMenu(); void displayMenu();
int add(int num1, int num2);
int subtract(int num1, int num2);
int multiply(int num1, int num2);
int divide(int num1, int num2);
double add(int num1, int num2);
double subtract(int num1, int num2);
double multiply(int num1, int num2);
double divide(int num1, int num2);
double exponent(double base, double exponent); double exponent(double base, double exponent);
double modulus(double num1, double num2); double modulus(double num1, double num2);
double logarithm(double num); double logarithm(double num);
@ -16,9 +16,8 @@ double sine(double angle);
double cosine(double angle); double cosine(double angle);
double tangent(double angle); double tangent(double angle);
int main() { int main() {
int choice, num1, num2, result;
double choice, num1, num2, result, angle;
do { do {
displayMenu(); displayMenu();

Loading…
Cancel
Save