c++ 2진수로 만들기
#include <iostream>
using namespace std;
void binary(int input) {
for(int compare =128; compare>=1; compare /= 2){
cout<<(input & compare ? 1:0);
if(compare == 16)
cout<<" ";
}
}
int main(){
binary(120);
}
INFO