How to store input

if the number of binary inputs to be taken are 5,I use a while loop to take input, but how to store them

Store in an array. Perform basic binary conversion then