can any one slove it without ussing array
N lines,each containing a decimal equivalent of the binary number
Yes, you can basically take input the no of test cases, and then no in the form of integer, and then you can pass that no to the function, in which you are converting the binary equivalent to decimal equivalent, this is how you can do without using array.