09 Jan PMCA Sunday 12:00 Java Homework 20.01.05.
Question:
Find the solution to a postfix
( Assume there are only 4 operands namely * / + – )
Sample Input 1:
3 5 +
Sample Output 1:
8
Sample Input 2:
1 2 3 * +
Sample Output 2:
7
Sample Input 3:
1 2 + 3 4 + *
Sample Output 3:
21
Sorry, the comment form is closed at this time.