2
Reply

convert string length into binary number

vishal badade

vishal badade

Jun 17 2015 10:29 AM
574
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

Answers (2)