Skip to content

Comments

A simple Java command-line calculator that performs basic arithmetic operations (+, -, *, /) on two integers provided as arguments.#2

Open
wazirmaikal wants to merge 1 commit intoSwarna-deep0:masterfrom
wazirmaikal:maikal
Open

A simple Java command-line calculator that performs basic arithmetic operations (+, -, *, /) on two integers provided as arguments.#2
wazirmaikal wants to merge 1 commit intoSwarna-deep0:masterfrom
wazirmaikal:maikal

Conversation

@wazirmaikal
Copy link

Calculator.java is a simple command-line Java program that performs basic arithmetic operations (+, -, *, /) on two integers. The user provides three arguments: the first number, the operator, and the second number. The program parses the numbers, checks the operator using a switch statement, performs the calculation, and prints the result in the format:

operand1 operator operand2 = result

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