Plami

Decimal to Binary Number

Mar 31st, 2014
415
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. class DecimalToBinaryNumber
  4. {
  5. static void Main()
  6. {
  7. Console.Write("Enter decimal number : ");
  8. long numberN = long.Parse(Console.ReadLine());
  9.  
  10. Console.WriteLine("number as Binary: {0}", Convert.ToString(numberN, 2));
  11. }
  12. }
RAW Paste Data