Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(count=1;count<=8;count++)
- {
- bit = num & 0x01;
- num = num>>1;
- output = output<<1;
- if(bit==1)
- output = output+1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement