+ 1
I have some question on my code
This is my project↓ Function Behavior ADD a b a + b SUB a b a - b MUL a b a * b MAX a b (a>=b) ? a : b MIN a b (a<b) ? a : b EX1, “ADD MUL 2 3 4” is 2*3+4 = 10 EX2, “ADD 4 MUL 3 3” is 4+3*3 = 13 EX3, “ADD MUL 2 3 MUL 4 5” is 2*3+4*5 = 26 Sample Input 5 /*how many operation*/ ADD 3 4 ADD MUL 3 4 SUB 2 3 ADD 4 MUL 2 3 MAX 1 MIN ADD 5 1 3 ADD 2 MAX ADD 2 3 MUL 2 3 Sample Output 7 11 10 3 8 I have do it use my way but it have my problem. (continue↓)
1 Answer
0
my question is I haven't learn "stack", but our teacher still want us complete it.
I use "function" "if else" to do it ,but the result is wrong.
can help me show how to do this project?



