Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. public class Program{
  2.  
  3. public static void Main(){
  4.  
  5. long min = Int64.MinValue;
  6.  
  7. for (int i=63; i>=0; i--) {
  8. Console.Write((min>>i) & 0x01);
  9. }
  10. Console.WriteLine();
  11. Console.WriteLine(min);
  12.  
  13. Console.WriteLine();
  14.  
  15. long max = Int64.MaxValue;
  16. for (int i=63; i>=0; i--) {
  17. Console.Write((max>>i) & 0x01);
  18. }
  19. Console.WriteLine();
  20. Console.WriteLine(max);
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement