← Problem book: C
Lesson 36 of 96 · 10 XP
Power of two
Theory and problem statement
Machine translation, not yet reviewed by a native speaker.
You are given n (0 ≤ n ≤ 62). Print 2ⁿ, computing the power by multiplication in a loop.
Example
Input:
10
Output:
1024
Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.