using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
Console.Write("请输入一个十进制数:");
int x = int.Parse(Console.ReadLine());
Console.WriteLine("{0} 的二进制数表示 {1}",x, Convert.ToString(x, 2));
}
}
}