← All problemsSign in

POWER OF 2 (Easy)

$2^n$ where n = 10 is 1024 and the sum of its digits is 1 + 0 + 2 + 4 = 7. Your task is to find the sum of the digits of the number $2^n$? ###Category: - Easy (10 Marks) - 5 Test Cases of 20 pts each ###Input: - The input will be ‘n’. ###Output: - The sum of the digits of the number $2^n$ must be the output. ###Constraints Time Limit for each test case: 3 secs - $2 \leq n \

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start