Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 824 Bytes

README.md

File metadata and controls

22 lines (20 loc) · 824 Bytes

Command-Line Calculator

This is a simple command-line calculator that can perform basic arithmetic operations. It allows you to enter two numbers and an operation, and then calculates the result. It supports the following operations:

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/)
  • Square root (√)
  • Cube root (3√)
  • General Root (n√)

Requirements

Java runtime environment (version 8 or later)

Running the Calculator

To run the calculator, follow these steps:

  1. Download the calculator.jar file from this repository.
  2. Open a command-line terminal and navigate to the directory where you downloaded the calculator.jar file.
  3. Run the following command:

`java -jar Calculator.jar`
Follow the on-screen instructions to enter the numbers and the operation you want to perform.