What is wrong with this code " to conver a binary to decimal"?
Hello Chahat,
After changing the condition in the while loop, from scanf("%lld",&x)!=EOF to x>0
your code is working fine. Here is the updated code https://ide.codingblocks.com/s/80247
okay thanks
but can u tell why was the prior condition not working ?