TORONTO KIDS COMPUTER CLUB | PMCA Sunday 12:00 Java Homework 20.01.05.
16854
post-template-default,single,single-post,postid-16854,single-format-standard,ajax_fade,page_not_loaded,,no_animation_on_touch,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

PMCA Sunday 12:00 Java Homework 20.01.05.

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

No Comments

Sorry, the comment form is closed at this time.