Von neuman loves binary

i have a problem in taking N no. of inputs in this problem.
I can convert the binary no. into decimal but the problem lies how can we dynamically intake the inputs.

Just take the input as a string. You won’t need to take anything dynamically.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.