Modify the code of ‘calculator.c’ (in 10469) to add the capability of equality and inequality.
The token of equality is set as ‘@’, and that of inequality is ‘#’. If the condition of the expression is correct, the output is 1; otherwise, the output is 0.
For example, if the input is ‘1 + 2 + 3 @ 6 –5’, the output is 0. if the input is ‘1 + 2 + 3 # 6 –5’, the output is 1.
Now there are several expressions, please show the condition of each expression.
The first line gives a number N(N<=10), which means there are N expressions in the input.
The length of each expression is less than 50 and each expression is ended with a new line character.
Show the condition of each expression once in a line.
You are asked to add a new line character at the end.