#include<iostream>
using namespace std;
int main()
{
int num,tag=128;
cin>>num;
while(tag!=0)
{
int temp = num & tag;
if(temp)
cout<<1;
else
cout<<0;
tag = tag>>1;
}
cout<<endl;
}
十进制转二进制(位运算)
最新推荐文章于 2021-05-20 13:19:07 发布