Basic CLI Calculator

NodeJS Medium 4 views
Back to Questions
Next Pretty Print Errors Medium N

Problem Description

Create a CLI that reads two numbers and an operator and prints result.

Input Format

stdin: a op b

Output Format

Print result.

Sample Test Case

Input:
5 * 4
Output:
20

Constraints

Support + - * /.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next