educative.io

Educative

Why do you add a 0 before the binary value of num1=10?

The binary value of 10 is 1010. In the example, it says the binary value of num1 = 10 is 01010. Why do you add a zero before 1010? Thank you for explaining.