This is a very simple CLI calculator written in Rust just to make me learn it in a simple way. 🐵
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Clone the repository to your local machine
- Type
cargo
to install dependecies - Now type
cargo run
to run the program
Once the binary is running:
Choose the operation you want to perform by typing a number between 1 and 5:
- Addition
- Subtraction
- Multiplication
- Division
- Exit
- Enter the first number.
- Enter the second number.
The calculator will then perform the chosen operation on the two inputted numbers and print out the result. It will also print the every calculation.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.