How to take input

i understand the logic for this ques,but i dont understand how we are taking inputs in this ques.
we want the binary representation of n no so we should use scanner in this?
and how to enter each binary no individually using scanner

hi @vaibhavvishal98
you can take input in integer or you can take in string as well.

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.