Stella-Nthenya / calculator_ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calculator App

REQUIREMENTS

To run the calculator app, you need to have Ruby installed on your system.

Usage

  1. Clone the repository to your local machine.

  2. Open a terminal or command prompt and navigate to the directory where the calculator app files are located.

  3. Run the following command to start the calculator app:

    ruby calculator.rb

  4. The calculator menu will be displayed, presenting the available options:

        1. Addition
        2. Subtraction
        3. Multiplication
        4. Division
        5. Exit
    
  5. Enter the corresponding number (1-5) for the operation you want to perform.

  6. If you choose an arithmetic operation (1-4), you will be prompted to enter two numbers.

  7. After entering the numbers, the calculator will display the result of the operation.

  8. You can continue using the calculator by selecting another operation or choose option 5 to exit.

About


Languages

Language:Ruby 100.0%