byte b=9;
string res="";
for (int i=7;i>=0;i++)
res+=((b>>i) & 1).ToString();
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.