Module: Bit Operations (C++)


Problem

12 /13


2^n+2^m

Problem

Find the sum of two different powers of 2 using only bitwise operations. In particular, you cannot use the addition operation.

Input: Two unequal numbers are given: n and m, not exceeding 31.
Output: Display the value of the sum 2n+2m.< br />
Examples
# Input Output
1 1 2 6