Help me in solving GSCV209 problem

My issue

What is the condition for while here the solution says it’s the same the problem

My code

// Update the '_' in the code below

#include <bits/stdc++.h>
using namespace std;

int main() 
{
 int t;
 //accept the count of test cases given in the the 1st line
 cin>>t;
 //Run a loop to accept 't' inputs
while(t--)
 { 
   int N;
 //accept an integer N in each test case
   _____N;
 //output the number mirror for each test case
   _____N;
  }  
 return 0;
}

Learning course: Learn C++
Problem Link: CodeChef: Practical coding for everyone

1 Like

@ankurkumar1300
The while loop’s condition signifies that u have to take input N ,t times and output each time .

Here is the correct code

#include <bits/stdc++.h>
using namespace std;

int main() 
{
 int t;
 //accept the count of test cases given in the the 1st line
 cin>>t;
 //Run a loop to accept 't' inputs
while(t-->0)
 { 
   int N;
 //accept an integer N in each test case
   cin>>N;
 //output the number mirror for each test case
   cout<<N;
   cout<<("\n");
  }  
 return 0;
}