hey i got a problem while taking inputs from user recently i wrote coding question in hackerrank in that it ask like first line contains no of test cases and second line (next N lines) contains no of inputs like for eg
2(test cases)
7
11
for this i wrote code like this
int n=sc.nextInt();
for(int i=0;i<n;i++)
{
int p=sc.nextInt();
}
hope u understand the problem like how should i store each value in sperate variable here 7 is stored in p variable then i didn't understand like how to store 11 in seperate variable or any other solutions are available?