Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <cstring>
- #include <algorithm>
- #include <stack>
- using namespace std;
- int main() {
- int x = 32;
- for(int bit = 6; bit >= 0; bit--) {
- if(x & (1 << bit)) {
- cout << 1;
- }
- else {
- cout << 0;
- }
- }
- cout << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement