Skip to content

malj/calculator

Repository files navigation

CLI Calculator

A simple CLI calculator written in Rust.

Features

  • addition +
  • subtraction -
  • multiplication *
  • division /
  • parentheses ()
  • decimal and hexadecimal (with 0x prefix) number systems

Install

To build the executable use Cargo.

Build and run:

cargo run --release

Build only:

cargo build --release

The executable output path is /target/release/calculator.

Usage

  1. Run the executable.
  2. Type an arithmetic expression and press Enter to evaluate.
  3. Press Ctrl+C to exit.

License

MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)

About

A simple CLI calculator written in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages