So let's suppose you want to store 100 inputs from the user. So what would be more feasible ,declaring 100 variables one by one and then writing scanf (,or cin if u are using C++) for all 100 variables or declaring an array of size 100 and taking input in array by using loop