2
Reply

convert string length into binary number

vishal badade

vishal badade

9 years ago
589
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)