Easy
2 to the Power n
Write a recursive
pow2(n) that returns 2ⁿ (2⁰ = 1). Read n and print it.Input
One integer 0–30.
Output
One integer.
Sample 1
Input
0
Output
1
Sample 2
Input
3
Output
8
Output appears here