Why it output wrong!

when i convert a decimal to binary representation ,it give count no bit instead of binaryoutput.
here is ny code_https://ide.codingblocks.com/s/279660

hello @Nikhil-Jettley-2567269533523013
image

it should be p=p*10;