One Operator Calculator

Python Medium 2 views
Back to Questions

Problem Description

Expression is provided as: a op b (space-separated). op can be + - * / %. Division is integer division. If op is invalid or division by zero happens, output ERROR.

Input Format

One line: a op b.

Output Format

One line answer or ERROR.

Sample Test Case

Input:
10 / 3
Output:
3

Constraints

|a|,|b|

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next