Guest User

Untitled

a guest
Feb 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. int poc = 128;
  2. string bin = "";
  3. for (int i = 0; i < 8; i++)
  4. {
  5. if (r >= poc)
  6. {
  7. bin += "1";
  8. r = r - poc;
  9. }
  10. else
  11. {
  12. bin += "0";
  13. }
  14. poc = poc / 2;
  15. }
  16. MessageBox.Show(bin);
Add Comment
Please, Sign In to add comment