testcase is not given

if test case is not given in any program then when it will stop taking input???

If the number of test cases is not given, you will need to take input till the end of file, if you code in C/CPP, you can use this piece of code:

long lont int n;

while(scanf("%lld", &n)!=EOF)


       //Your code here


The number from the stdin will be stored in the long long integer variable n, Hope that helps :slight_smile: