|
@ -1,4 +1,5 @@ |
|
|
#include <stdio.h> |
|
|
#include <stdio.h> |
|
|
|
|
|
#include <math.h> |
|
|
|
|
|
|
|
|
// Function prototypes |
|
|
// Function prototypes |
|
|
void displayMenu(); |
|
|
void displayMenu(); |
|
@ -23,8 +24,8 @@ double cube(double num); |
|
|
double cubeRoot(double num); |
|
|
double cubeRoot(double num); |
|
|
|
|
|
|
|
|
int main() { |
|
|
int main() { |
|
|
double choice, num1, num2, result, angle; |
|
|
|
|
|
int r,n; |
|
|
|
|
|
|
|
|
double num1, num2, result, angle; |
|
|
|
|
|
int choice,r,n; |
|
|
|
|
|
|
|
|
do { |
|
|
do { |
|
|
displayMenu(); |
|
|
displayMenu(); |
|
@ -156,10 +157,10 @@ int main() { |
|
|
printf("Invalid choice\n"); |
|
|
printf("Invalid choice\n"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} while (choice != 20); |
|
|
|
|
|
|
|
|
while (choice != 20); |
|
|
|
|
|
|
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
// Function definitions |
|
|
// Function definitions |
|
|
void displayMenu() { |
|
|
void displayMenu() { |
|
|
printf("\nAdvaced Calculator\n"); |
|
|
printf("\nAdvaced Calculator\n"); |
|
|