# Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Mr. X is a school teacher. He teaches C programming to the students. In every class, he gives some simple problems to the students as a class task. One day he asked his students to solve a simple problem. That is, he will give two numbers and an arithmetic operator ( +, - , * ) in the middle of the two numbers. Students have to find out the result after the arithmetic operation. For example, Mr. X has given “10 * 20”. So, the result will be 200.

Now, suppose you are a student of his class. You have to solve this task. Can you solve it?

Input starts with an integer T ≤ 50), denoting the number of test cases. Each case starts with a line containing an Integer A, a character B and another integer C. You can assume that both A, C will not be more than 1000.

For each case, print the case number and the result. See the samples for exact formatting. Do not break the actual formatting that is given in sample output. Otherwise, you may get wrong answer or presentation error.

Input | Output |
---|---|

2 10 * 20 50 - 10 | Case 1: 200 Case 2: 40 |

92% Solution Ratio

mjtbasifEarliest,

Hasibul_HasanFastest, 0.0s

atanusaha143Lightest, 0 B

DasjituShortest, 67B

Login to submit