In challenges-Fundamentals and Patterns there in question “Basic Calculator” i wrote the above code.The output is below :
TESTCASE # 1 : wrong-answer (Time: 0.06 s)
TESTCASE # 2 : run-error (Time: 0.05 s)
TESTCASE # 3 : run-error (Time: 0.05 s)
TESTCASE # 4 : wrong-answer (Time: 0.06 s)
TESTCASE # 5 : correct (Time: 0.05 s)
TESTCASE # 6 : correct (Time: 0.07 s)
Can you tell what’s wrong in the code.
also in question it is not specified what to do if the input N2 =0 in case of division and modulos.