CodeSolved

Solved Programming Questions & Exercises

Conversion of text string to binary

Practice Normal 2316/ Download 14 Views New

Write a program that receives a text string from the input and represents the equivalent of each character as a string of numbers 1 and 2.
For example, input:

hello world

Output:

0110100001100101011011000110110001101111001000000111011101101111011100100110110001100100

0 Answers

Submit answer

Submitting answers is currently unavailable.

×
×
Close