|
@ -1,4 +1,3 @@ |
|
|
|
|
|
|
|
|
#include <string.h> |
|
|
#include <string.h> |
|
|
#include <stdlib.h> |
|
|
#include <stdlib.h> |
|
|
#include <math.h> |
|
|
#include <math.h> |
|
@ -1340,8 +1339,7 @@ int mode(int userChoice){ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// display the mode options: |
|
|
|
|
|
int displayMenu(){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printf("\nCalculator Modes: \n"); |
|
|
printf("\nCalculator Modes: \n"); |
|
|
printf("\n1: Basic Mode\n"); |
|
|
printf("\n1: Basic Mode\n"); |
|
@ -1351,6 +1349,6 @@ int displayMenu(){ |
|
|
printf("\n5: Unit converter Mode (length, weight volume etc.)\n"); |
|
|
printf("\n5: Unit converter Mode (length, weight volume etc.)\n"); |
|
|
printf("\n0: Exit calculator\n"); |
|
|
printf("\n0: Exit calculator\n"); |
|
|
|
|
|
|
|
|
return 1; // return 1 to check if the function works |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|