In embedded development, visualizing the binary form of a value is crucial for debugging and understanding register configuration. Your task is to:
Example-1
Input: val = 10
Output: 00001010
Example-2
Input: val = 255
Output: 11111111
Example-3
Input: val = 1023
Output: 0000001111111111
Example-4
Input: val = 65535
Output: 1111111111111111
Input
10
Expected Output
00001010