![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
using System;
using System.Collections;
class Ten
{
static void Main()
{
Console.WriteLine("Input the number!");
int ten=Int32.Parse(Console.ReadLine().Trim());
ArrayList al=new ArrayList();
while(ten>0)
{
if(ten%2==0)
{
al.Add(0);
ten=ten/2;
}else
{
al.Add(1);
ten=ten/2;
}
};
for(int i=al.Count-1;i<al.Count;i--)
{
if(i<0)break;
Console.Write(al[i]);
}
}
}