This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#include <bits/stdc++.h>
using namespace std;
int main() {
//将十进制转为二进制,并输出每个二进制位的值是0还是1
int n = 13;
for (int i = 3; i >= 0; i--)
cout << (n >> i & 1) << " ";
return 0;
}