Skip to content

huggingbot/rust-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator

Calculator made by following the freecodecamp rust in replit tutorial

Usage

cargo run <number_1> <operator> <number_2>

Example:

cargo run 1 + 1

# Output
1 + 1 = 2


cargo run 2 - 1

# Output
2 - 1 = 1


cargo run 3 x 2

# Output
3 x 2 = 6


cargo run 3 / 2

# Output
3 / 2 = 1.5

Build

cargo build

# Release version
cargo build --release

About

CLI calculator built with Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages