> OR mask1 with num1, print the result
> toggle num1, print the result
None of your code does either of these things.

You might save some confusion by renaming your 'bit_mask' to something better, like print_in_binary.