| DEC | BIN | | -------- | -------- | | 0 | 0000 | | 1 |0001| |2| 0010| |3|0011| |4|0100| n=25 ``` C++ int bin[31]={0},i=-1; while(n) { bin[i++]=n%2; n=/2 ; }
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up