take input as string maximum length 7.
output is length of that string in binary no.
sample input: hello
(length is 5)
sample output: 00 01 10 11 100
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Sujeet SumanRank #790 · 2.9K reputationPosted Jun 17, 2015, 9:08 AM EDT
vishal badade9 reputationPosted Jun 17, 2015, 10:20 AM EDT