2013_c_2_jr_sol
2013_c_2_jr_sol
1. Prefix/Infix/Postfix 1. 4
+ /+ 2 4 3 / * 4 + / 6 2 1 8 = + /(2 + 4) 3 / * 4 +(6 / 2) 1 8 = + / 6 3 / * 4 + 3 1 8
= +(6 / 3) / * 4 (3 + 1) 8 = + 2 / * 4 4 8 = + 2 / (4 * 4) 8 = + 2 / 16 8
= + 2 (16 / 8) = + 2 2 = 2 + 2 = 4
2. Prefix/Infix/Postfix 2. AB+C/CAB─*BC+/+
A + B + C*(A – B) = A B + C / C A B ─ * B C + /+
C B+C
5. 25
5. What Does This Program Do?
This program finds and counts the even numbers from 100 to 200 that are
divisible by 3 (150) and divisible by 5 (91) and then eliminates those
divisible by both (30).