I submitted my code on basic calculator but only the first two test cases were correct. After repeated failed attempts, I downloaded the testcases and the 3rd testcase input and output was given as follows:
Input:
+
1
2
1
2
*
1
2
.
/
1
2
x
Output:
Invalid operation. Try again.
Invalid operation. Try again.
2
8
How are the first two operations invalid?