To run the calculator app, you need to have Ruby installed on your system.
-
Clone the repository to your local machine.
-
Open a terminal or command prompt and navigate to the directory where the calculator app files are located.
-
Run the following command to start the calculator app:
ruby calculator.rb
-
The calculator menu will be displayed, presenting the available options:
1. Addition 2. Subtraction 3. Multiplication 4. Division 5. Exit
-
Enter the corresponding number (1-5) for the operation you want to perform.
-
If you choose an arithmetic operation (1-4), you will be prompted to enter two numbers.
-
After entering the numbers, the calculator will display the result of the operation.
-
You can continue using the calculator by selecting another operation or choose option 5 to exit.