Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 376 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 376 Bytes

Postfix Notation

Postfix Notation Calculator

📋 Requirements

  • Rust

🚀 Usage

Run the program using the following command.

cargo run

The calculation of the expression 2+2 could look like this:

$ cargo run
2 2 +
Result: 4

Lets try something more sophisticated such as pow(2, 5):

$ cargo run
2 2 * 2 * 2 * 2 *
Result: 32