Skip to content

Add CLI calculator to Rust classwork#4

Open
Haroldwonder wants to merge 1 commit into
thebuidl-grid:mainfrom
Haroldwonder:cli-calculator
Open

Add CLI calculator to Rust classwork#4
Haroldwonder wants to merge 1 commit into
thebuidl-grid:mainfrom
Haroldwonder:cli-calculator

Conversation

@Haroldwonder

Copy link
Copy Markdown
Collaborator

This Rust program demonstrates basic Rust concepts such as constants, variables, functions, conditionals, loops, and user input.
It includes a simple CLI calculator that allows users to perform basic arithmetic operations.
The calculator accepts two numbers and an operator (+, -, *, /) from the terminal.
It uses match to determine the operation and prints the result.
The program also handles invalid operators and prevents division by zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant