diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index 6f0a91d..b6f0037 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -1,4 +1,5 @@ #include +#include // Function prototypes void displayMenu(); @@ -23,8 +24,8 @@ double cube(double num); double cubeRoot(double num); int main() { - double choice, num1, num2, result, angle; - int r,n; + double num1, num2, result, angle; + int choice,r,n; do { displayMenu(); @@ -156,10 +157,10 @@ int main() { printf("Invalid choice\n"); } } - } while (choice != 20); + while (choice != 20); return 0; -} + } // Function definitions void displayMenu() { printf("\nAdvaced Calculator\n");