Convert binary to primary

in this we are required to convert binary to decimal no
please check my code and tell me what is the error

hello @dhruvk3k
check ur updated code here->


a) while loop condition should be while(no!=0) , interchnaged the position of instructions inside while loop.

do furthur modification to get Ac
a) use long long in place of int
b) dont print any extra english statements,check output format and then print only those things that are asked